Show HN: PostgreSQL index advisor
399 by kiwicopple | 95 comments on Hacker News.
This is a Postgres extension that can determine if a query should have an index. For example, for this table: create table book( id int primary key, title text not null ); You can run `index_advisor()` to see if there should be an index on a select statement: select * from index_advisor('select book.id from book where title = $1'); And it will return (summarized): {"CREATE INDEX ON public.book USING btree (title)"} It works particularly well with pg_stat_statements[0] which tracks execution statistics of all SQL statements executed on your Postgres database. It leans heavily on HypoPG[1], an excellent extension to determine if PostgreSQL will use a given index without spending resources to create them. [0] pg_stat_statements: https://ift.tt/Sz1mBA9... [1] https://ift.tt/YIer6Tj
New best story on Hacker News: GPT-6 Astra
GPT-6 Astra 771 by kibae | 496 comments on Hacker News. System Card: https://ift.tt/G7UMZDy Related ongoing threads: OpenAI's GPT-...
-
เคตเคฐोเคฐा เคเคฎเคเคธเคเคฌीเคे เคธเคนाเคฏ्เคฏเค เค เคญिเคฏंเคคा เคช्เคฐเคซुเคฒ เคฒाเคฒเคธเคฐेเคी เคตเคฐोเคฐा เคถเคนเคฐाเคคूเคจ เคนเคाเคฒ เคชเค्เคी เคเคฐा.... เคฎाเคीเคฒ เค เคจेเค เคตเคฐ्เคทांเคชाเคธूเคจ เคตเคฐोเคฐा เคคाเคฒुเค्เคฏाเคค เคाเคฐ्เคฏเคฐเคค...
-
เคญเคฐเคค เคुเคช्เคคा เคต เคธเคนเคाเคฑ्เคฏांเคเคกूเคจ เคฏुเคตाเคธेเคจा เคिเคฒ्เคนा เคช्เคฐเคฎुเคाเคตเคฐ เคीเคตเคेเคฃा เคนเคฒ्เคฒा ; เคंเคฆ्เคฐเคชूเคฐ เคถเคนเคฐाเคคीเคฒ เคช्เคฐเคाเคฐ เคเคฒेเค เคฐเคฎेเคถ เคฐเค्เคे เคฏुเคตा เคธेเคจा เคिเคฒ्เคนा...
-
เคจिเคिเคฒ เคฎांเคกเคตเคเคฐ เคฏांเคी เคฏुเคตाเคธेเคจा เคเคชเคिเคฒ्เคนा เคช्เคฐเคฎुเค (เคตเคฐोเคฐा, เคिเคฎूเคฐ, เคฌ्เคฐเคฎ्เคนเคชुเคฐी) เคชเคฆाเคตเคฐ เคจिเคฏुเค्เคคी เคตเคฐोเคฐा : เคนिंเคฆुเคนृเคฆเคฏเคธเคฎ्เคฐाเค เคถिเคตเคธेเคจाเคช्เคฐเคฎुเค เคฌाเคณ...