Open davidw opened 10 years ago
Given
boss_db:find(fixation_target, []).
The query generated is:
12:06:46.827 [info] QUERY: SELECT * FROM fixation_targets WHERE TRUE ORDER BY id ASC PARAMS []
Which seems like a bad idea as it is wasting time sorting UUID id's.
Here's a hacky way to get around that on Postgres:
boss_db:find(fixation_target, [], [{order_by, 'true'}])
Given
The query generated is:
Which seems like a bad idea as it is wasting time sorting UUID id's.