HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rw-access

no profile record

comments

rw-access
·last year·discuss
I have hundreds of queries like this in production (Go + Postgres + pgx), and don't have issues leveraging the right indexes. Make sure when using prepared statements, you have custom query plans per query for this via `SET plan_cache_mode = force_custom_plan`.

These optimizations are trivial for Postgres to make optimization/plan time, so there's no runtime hit. But as always, profile and double check. You're definitely right that assuming can get you in trouble.

I don't have experience with the other databases to speak to their quirks. But for my specific setup, I haven't had issues.
rw-access
·2 years ago·discuss
The CLA best answers the questions in your first paragraph.

https://www.elastic.co/contributor-agreement