The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
"ORDER BY" without large table scans and filesort
OK, this seems to be impossible but I thought I could ask anyway, maybe I overlooked smth. and somebody has the 1.000.000 $ answer
Let's say I got a table with several tenthousand records; the primary index as an auto-increment integer. Now I want the last record. I could do [sql]SELECT * FROM table ORDER BY id DESC LIMIT 1[/sql] But this causes large table scans ... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|