Hard disk crashed
That's because I choose simple but inefficient method of storing quotes. Initially I tried to store quotes in MySQL database but it's certainly not built for tables of 20+ gigabytes. Even simple queries take very long and unpredictable amounts of time. In case of power failure or computer crash (happens quite often), database should be "repaired", which also takes forever.
So I decided to store quotes in binary files under directory structure like YYYY/MM/DD/AAPL.dat. Then another problem arised - when the amount of files exceeded 3 million (and I am only half-way through!), the MFT of my hard disk got full. Performance decreased drastically and I decided to use a tool named Diskkeeper to increase the size of MFT and to defragment it.
Alas! After Diskkeeper played with my disk I was no longer able to boot from that disk. fixboot and fixmbr didn't help. So now I am reinstalling everything.
After googling a bit, I made a pair of batch files which are intended to reserve MFT space for large amount of files. This better should be done on a freshly formatted disk so that MFT comes in one large unfragmented piece.
That's because I choose simple but inefficient method of storing quotes. Initially I tried to store quotes in MySQL database but it's certainly not built for tables of 20+ gigabytes. Even simple queries take very long and unpredictable amounts of time. In case of power failure or computer crash (happens quite often), database should be "repaired", which also takes forever.
So I decided to store quotes in binary files under directory structure like YYYY/MM/DD/AAPL.dat. Then another problem arised - when the amount of files exceeded 3 million (and I am only half-way through!), the MFT of my hard disk got full. Performance decreased drastically and I decided to use a tool named Diskkeeper to increase the size of MFT and to defragment it.
Alas! After Diskkeeper played with my disk I was no longer able to boot from that disk. fixboot and fixmbr didn't help. So now I am reinstalling everything.
After googling a bit, I made a pair of batch files which are intended to reserve MFT space for large amount of files. This better should be done on a freshly formatted disk so that MFT comes in one large unfragmented piece.