Use TrackerSparqlStatement wherever possible
Tracker 2.2 added TrackerSparqlStatement, which can be used to store recurrent queries so that they are reusable (just replacing the input arguments).
This surely applies to some queries around, mostly in src/miners. Other queries that are constructed in code (eg. variable number arguments in IN ()
) don't make as much sense to store as-is, and may need extra analysis to get a TrackerSparqlStatement
-ready query that is just as fast, or leave as is.
git grep -i "\"select" src/miners
might give an initial idea of the relevant places.