Re:Just use Postgres for everything
by quickthrower2 on Saturday December 10, 2022 @03:33PM
(#33936524)
Surely you give up LIKE queries benefiting from the index this way?
[ Parent
| on HN ]
Last time I needed this, LIKE queries still did sequential scans anyway, so the presence of an index or not did not matter.
Also note that you can have multiple indexes in Postgres (well, any RDBMS).
For emails in particular, you can even do partial indexes (eg. imagine filtering emails on @gmail.com to hit a separate index that's only half of your full table index). This requires some care with queries, but a wonderful feature regardless.