Which do you think would be faster:
A) Reading a file 512 bytes in length on a solid state drive in a directory of 1 billion files
B) Selecting a 512-byte column by unique indexed key from a database table containing 1 billion records
EDIT:
Would the OS, database, or file system really make the difference? Is it that close of a race? Are SSD really that fast? Are databases really that slow?