When speed is crucial for running a program that execute millions of calculations, accessing information into the hard disk is very expensive. What I want to know is if the cost for accessing information in a database (e.g. MySQL) is sow expensive like for hard disk.