Uuid and index in database #486
Unanswered
rudolfbruder
asked this question in
Q&A
Replies: 2 comments
-
Typically yes the uuid column would be indexed. Or you could use HasUuids trait and use uuid as primary key, ie Then with the HasUuid trait from Laravel you can use native |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just make you make your id column fillable, or use |
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
-
Hi,
I am wondering whether I should create index on uuid columns in my models.
My tables with models that are projections will get large and I wonder what the performance will be when using uuid and event sourcing. Wont the find by uuid be slow when my table will have millions of records without index on this column?
On the other hand its a long string, should it be indexed?
Beta Was this translation helpful? Give feedback.
All reactions