I'm working on a webbased file archive, and I'm not sure if I should make it store the different filetypes in a mysql database or a folder on the server!

Which solution is the fastes to view / work with?

(Have heard that files in databases makes queries very slow)