-
-
Notifications
You must be signed in to change notification settings - Fork 252
Support for partial index #396
Copy link
Copy link
Closed
Milestone
Description
Discussed in SeaQL/sea-orm#872
Originally posted by @onichandame
Motivation
Sqlite supports a WHERE clause on creating an index. see docs
This feature is useful if only a subset of rows need to be indexed. Without it the index must cover all rows, which unnecessarily consumes more disk space.
Proposed Solutions
Something like sea_query::Index::create().filter(<Condition>) for use with entities, and sea_query::Index::create().filter_raw("<Where Clause>") for more freedom.
Additional Information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done