TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The SQLite Index Suggester

199 pointsby polyrandalmost 3 years ago

4 comments

yvanalmost 3 years ago
I find it interesting, as recently I was reading about how complex it would&#x2F;could be to create an index suggester.<p><a href="https:&#x2F;&#x2F;www.depesz.com&#x2F;2021&#x2F;10&#x2F;22&#x2F;why-is-it-hard-to-automatically-suggest-what-index-to-create&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.depesz.com&#x2F;2021&#x2F;10&#x2F;22&#x2F;why-is-it-hard-to-automati...</a>
评论 #31993197 未加载
评论 #32003061 未加载
realPubkeyalmost 3 years ago
I did something similar for a NoSQL database [1]. The biggest surprise was how much the query performance can change for an index when the data distribution changes slightly. For example using a real distribution for an &#x27;age&#x27; field instead of just using a random number like in the test data.<p>[1] <a href="https:&#x2F;&#x2F;rxdb.info&#x2F;query-optimizer.html" rel="nofollow">https:&#x2F;&#x2F;rxdb.info&#x2F;query-optimizer.html</a>
评论 #31992895 未加载
评论 #31993944 未加载
评论 #31992721 未加载
krylonalmost 3 years ago
This sounds really cool!<p>I&#x27;ve sometimes wondered why server-based RDBMSs don&#x27;t offer something like this. Is it too hard to implement? Or did people just not think of it? Or do they have something like this and I just never learned about it?
评论 #31991986 未加载
评论 #31992579 未加载
评论 #31993286 未加载
评论 #31996955 未加载
评论 #31993244 未加载
hardwaresoftonalmost 3 years ago
In Postgres land, hypopg:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;HypoPG&#x2F;hypopg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;HypoPG&#x2F;hypopg</a>