Software development challenges around index creation for data models
-
@elfring said in Software development challenges around index creation for data models:
Will your data source provide homogenous items for this model?
Do you mean the data types? If so, then no, the data types are different for the different columns of the table.
-
@kshegunov said in Software development challenges around index creation for data models:
QObject::connect(dataSource, &MyDataSource::dataChangeStarted, this, &MyModel::beginResetModel);
QObject::connect(dataSource, &MyDataSource::dataChangeFinished, this, &MyModel::endResetModel);I know you can do better than this mate! I know you have to create and connect a gazillion signals but at least you don't build everything from scratch
-
@VRonin said in Software development challenges around index creation for data models:
I know you can do better than this mate! I know you have to create and connect a gazillion signals but at least you don't build everything from scratch
Actually I can't in this case. I know you want me to emit the row/columns changed and the
***Inserted
/***Deleted
signals, but it simply isn't applicable in this particular case.PS.
Here the data comes from a longJOIN
of tables and I'd rather emitmodelReset
after I had processed all the peculiarities, than to do a fetch from the database on each displayed cell/row. -
@elfring said in Software development challenges around index creation for data models:
Will your data source work without hierarchies then?
I don't follow. This is a table model, there's no hierarchy here.