Repeated copying of the result row in DAOs
Bug #1201991 reported by
RJ Skerry-Ryan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Medium
|
Nazar Gerasymchuk |
Bug Description
After exec()'ing a QSqlQuery, we often call QSqlQuery::record() to get a QSqlRecord in order to look up column indexes by name. Every time you call QSqlQuery::record() after the query has been executed, it copies all the data for the row into the record.
This means in a case like TrackDAO:
The solution is to only call QSqlRecord once per prepared query and before exec()'ing it to avoid copying any data.
tags: | added: dao library performance |
Changed in mixxx: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in mixxx: | |
assignee: | nobody → Nazar Gerasymchuk (troyan3) |
milestone: | none → 1.12.0 |
status: | Confirmed → Fix Committed |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Mixxx now uses GitHub for bug tracking. This bug has been migrated to: /github. com/mixxxdj/ mixxx/issues/ 7106
https:/