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: How to Firefox
How to Firefox 667 by Vinnl | 394 comments on Hacker News.
-
เคตिเคฆ्เคฏाเคฐ्เคฅ्เคฏांเคตเคฐीเคฒ เค เคฎाเคจुเคท เค เคค्เคฏाเคाเคฐ – เคฎुเค्เคฏाเคง्เคฏाเคชเค เคต เค เคงीเค्เคทเคाเคตเคฐ เคुเคจ्เคนा เคฆाเคเคฒ เคเคฐूเคจ เคคाเคค्เคाเคณ เคाเคฐเคตाเค เคเคฐा. เคเคฆिเคตाเคธी เคाเคฏเคเคฐ เคธेเคจेเคे เคंเคฆ्เคฐเคชूเคฐ เคिเคฒ्เคนा เคเคชाเคง...
-
เคฏेเคจ्เคธा เคฏेเคฅीเคฒ เค เคชเคाเคคाเคค เคฎूเคค्เคฏुंเคฎुเคी เคฎเคนिเคฒाเค्เคฏा เคตाเคฐเคธाเคจा 5 เคฒाเคाเคी เคเคฐ्เคฅिเค เคฎเคฆเคค เคเคฐा เคคुเคฒเคธी เค เคฒाเคฎ เคตเคฐोเคฐा เคถเคนเคฐाเคคीเคฒ เคฌाเคตเคฃे เคฒेเคเคเค เคต เคाॅเคฒเคฐी เคตॉเคฐ्เคก...
-
เคชाเคตเคจा (เคฐै)เคฏेเคฅे เคोंเคกी เคงเคฐ्เคฎ เคช्เคฐเคฌोเคงเคจ เคฎेเคณाเคตा. เคोंเคกी เคชाเคฐंเคชเคฐिเค เคจूเคค्เคฏ เคคเคฅा เคोंเคกी เคฐेเคॉเคฐ्เคกिंเค เคกाँเคจ्เคธ เคจूเคค्เคฏ เคธ्เคชเคฐ्เคงेเคे เคเคฏोเคเคจ. เคญเคฆ्เคฐाเคตเคคी(เคฆि .3...