Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

First of all, this is a very cool web hack, I like it very much.

I have a question. It's a 668.8MB database file. What does actually happen if the query has to scan 300 mb before finding the right answer? Wouldn't it be better to do the work up front and deliver the answers as static json files? Sure you loose the flexibility of dynamic queries, but do you really have that flexibility in non trivial cases (e.g. 300 mb search)?



If your statistic or whatever can be precomputed, you can precompute it and put it in db table rather than compute it each time by reading the 300MB.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: