I am working with a large dataset of 8Gb (HIGGS dataset). When looking at the vignette for the dbplyr package (see vignette('dbplyr')) I came across this line,
(If your data fits in memory there is no advantage to putting it in a database: it will only be slower and more frustrating.)
The HIGGS dataset does fit in memory on my machine, my questions are:
- Is this always true? And if not, when is it not true?
- More generally are there any performance benefits to keeping the data out of memory, even if it does fit, and why?
edit: After looking at the link provided by @Waldi: RAM 100x faster than HDD, an additional question is how does this change for a SSD?