Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(polymorphic_has_many): Update notable_type attribute #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Japestrale
Copy link

Had a conversation with Rich that can be found -> (https://graphiti-api.slack.com/archives/C5A4UEMGS/p1606923424312700).

Specifying the _type attribute of a polymorphic_has_many as a string_enum rather than a string will ensure that eql is used instead of eq when making database queries. This ensures that the database query does not use LOWER and bypass indexes.

Had a conversation with Rich that can be found -> (https://graphiti-api.slack.com/archives/C5A4UEMGS/p1606923424312700).

Specifying the `_type` attribute of a `polymorphic_has_many` as a string_enum rather than a string will ensure that `eql` is used instead of `eq` when making database queries.  This ensures that the database query does not use LOWER and bypass indexes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant