Hi,
A few questions about the Table query execution speed, which do not seem to be documented anywhere.Please point me to the documentation if it exists.
- How does the Table.query command work when multiple criteria are given? It seems that the speed of the query depends (sometimes a lot) on the order of the criteria. E.g. first criteria being something like a general category (category = "food") and second e.g. weight on row (weight >= 50) does not give the same result as giving the criteria the other way around. This is obviously not visible with small tables, but if one has 10000+ rows then it can make a big difference.
- Do the later criteria check only the subset that the first criteria returns?
- Does ORDER BY always check all rows of the table or only the subset that the query returned?
- Is the table query faster with bundle tables?
- What does "optimize column for lookup" do and when should it be used?
- Can I optimize multiple columns for lookup?
- Does it even make sense to use Table.query for very large tables or should some other method be used?
Thank you!
Kind regards,
Axel