CellProfiler-Analyst
CellProfiler-Analyst copied to clipboard
Autocomplete for filter crashes for large imagesets (> 50000)
Currently we are running queries to get possible labels for MetaData columns when choosing them from a filter. However for very large image sets, this causes CPA to freeze when creating a new filter because the SQL query takes too long. The gist of the matter can be found here: https://github.com/CellProfiler/CellProfiler-Analyst/blob/master/cpa/columnfilter.py#L94 .
@jhung0 suggested to remove the autocomplete functionality completely.

Seems reasonable :+1:
If the columns are indexed, then the queries might be fast enough. Perhaps then you could query which columns are indexed and only auto-complete those.
I uncommented autocomplete (see 5dcb63a) currently but will leave the issue open to see if I can speed it up