Skip to content

Consideration for converting IndexMethod.hash in sqlite transactions #1275

@Skelmis

Description

@Skelmis

Currently I run various text columns with indexes on them, ideally IndexMethod.hash as this provides good equality matching lookups. I run into an issue with this however during tests which run on sqlite, as Piccolo will exit with an error if this index method is used. This is really not ideal and basically means I cannot use this index method at all as it is not feasible to run postgres just for test cases.

Possible I'm thinking of maybe adding another way to say to Piccolo, hey please map this to a usable sqlite index instead of erroring, either by app level variable of a column argument like sqlite_index_method. I.e. In my use case it is fine for IndexMethod.hash to be mapped to IndexMethod.btree if the DB is sqlite, as long

I also may be overlooking something, perhaps there is a way to do this already?

Thoughts?

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