mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
651 B
651 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can create a special index for a transformation of a column | 1596508360001482753 | weekly-thread-2022-35 | tobias_petry |
|
2022-11-26T14:17:09+00:00 | you-can-create-a-special-index-for-a-transformation-of-a-column |
⚡️ Database Tip
Most developers are puzzled that indexes are not used for e.g. WHERE LOWER(email) = ?. But contrary to common belief, an index can be created for these cases! It's called a function-based index and is supported by MySQL and PostgreSQL.