chroma
chroma copied to clipboard
Add index to `count`
Current count does a full table scan which is quite slow. A first glance suggests this may not be trivial in sqlite.
We should speed up count, but SQLite indices don't help. Will have to do it a different way. Likely trigger and update a count.
https://stackoverflow.com/questions/8988915/sqlite-count-slow-on-big-tables
@HammadB could we close this? i think we do this on distributed now?