Index on char(N) columns not getting picked up by SELECT queries #415
cakir-enes
started this conversation in
General
Replies: 2 comments
-
Yeah, I agree. Check my comment on related issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In release v2.12.0, added new constructors for Postgres-specific character types, including |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Generated models for
char(N)
columns usestring
type so to query you writetable.Account.SELECT(table.Account.AllColumns).WHERE(table.Account.L1Address.EQ(String("somthing")).Query..
but this wont use indexes. You have to actually writeCAST(String("somthing")).AS_CHAR(42)
which is pretty unintuitive imogo-jet
should at least generate helper funcs and warn about this in docs.Beta Was this translation helpful? Give feedback.
All reactions