Skip to content

Default sort on ID a bad idea if ID is a UUID #174

@davidw

Description

@davidw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions