Replies: 3 comments 5 replies
-
Can you give an example from your code? |
Beta Was this translation helpful? Give feedback.
-
Queries that take a long time are normally because the database is scanning the table rather than using an index to find the record. Have you tried including the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i have problem when record has reached hundred million when using soft delete, the query take a long time.
When i disable soft delete or using withTrashed() the query run normal.
I think change it to smallint will make the query run more faster or we can have 2 column 'is_deleted' and 'deleted_at'
Beta Was this translation helpful? Give feedback.
All reactions