Em 17/11/2013 22:02, Gavin Flower escreveu:
On 18/11/13 12:53, Stefan Keller wrote:
[...]
It would allow optimised indexes that store memory pointers of individual records, rather than to a block & then search for the record - as well as other optimisations that only make sense when data is known to be in RAM (and RAM is plentiful). As already big severs can have a TerraByte or more of RAM, that will become more & more common place. I have 32GB on my development box.
Cheers,
Gavin
Yes, those optimizations I was talking about: having database server store transaction log in high speed solid state disks and consider it done while background thread will update data in slower disks...
There is no reason to wait for fsync in slow disks to guarantee consistency... If database server crashes, then it just need to "redo" log transactions from fast disk into slower data storage and database server is ready to go (I think this is Sybase/MS SQL strategy for years).
Also, consider to have lazy loading (current?) or eager loading (perhaps, I just learned a bit about pg_warmcache).
And, of course, indexes that would point to pages in disk to memory areas when in RAM - as you just mentioned.
Regards,
Edson