Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(sqlite data): switch OR to a UNION in data attributes query PE-6806
The OR in the previous query was preventing effective index usage. This change modifies the query to use a UNION of lookup by ID and data root. That's a much simpler query for the optimizer to understand, and it uses indexes for both.
- Loading branch information