98 points · by aritraghosh007 · 13y ago · 20 comments
What the fuck?
MySQL does have an implicit ordering on GROUP BY queries, but it is deprecated and should not be relied on.
As a side note, because of this, secondary indices just have a pointer to a PK. So when looking up by a secondary index, it has to traverse two trees.
sqlite3 stores rows in an integer primary key index. If you do not specify an "integer primary key" column, it synthesizes one behind the scenes (essentially a rowid) and your primary key lookups end up going through two indexes.
Currently digging through Google to see if I can find how those async calls are implemented on Linux/Windows to see if you can expect similar speedups in performance as Yoshinori saw in this article.
[1] http://openjdk.java.net/projects/nio/javadoc/java/nio/channe...
The solution sounds fragile; I guess you can't query by extent?