Tasks to do
- new sql query
- indices
- tagResource() for multiple resource ids
- untagResource() for multiple resource ids
- add ORDER BY to the query so it has correct order (and check the performance just in case)
- Grum's correction for wdgtagselection - https://krita-artists.org/t/fighting-with-new-improved-resource-system/35020/24?u=tiar
- why there is tagResource called 15 times for one resource (Grum's words) (possibly the list of resources has duplicates?) -> no, it doesn't
- Improve rowCount() query: https://invent.kde.org/graphics/krita/-/commit/e23a445df24079c5b23a4055341cc6c67e46f73b
- Investigate https://krita-artists.org/t/krita-5-0-2-very-slow-to-start/35755/16 (waiting for an answer)
- Importing a bundle can take a long time (add a progress bar or something)
- Add ORDER BY to every main query in any model
- Check signals in every model (add unit tests)
- Make addResource() into allowing multiple resources (possibly a new function - ask Halla)
- Make importResource[File]() into allowing multiple resources (possibly a new function - ask Halla)
Things to check
- whether the order is correct
- check begin... etc. is correct for tagging (preferably in a unit test)
- check begin... etc. is correct for untagging (preferably in a unit test)
- check that bug about tagging