0

I am developing a site with codeigniter and would like to know which caching system will be best to use with a very large database (above 100k records with many join queries ) so my questions is:

is file-based caching is good or I will have some I/O issues? or should I write a new driver (I am not sure if codeignter have such driver ) for caching which will store cache in database as key,value pairs?

I cant use memcache or APC due to large size of rows so which should i choose file-based or database-based.

Thanks for any input.

4

1 回答 1

1

超过行数,它取决于总数据大小。

如果对象的总大小小于 1MB,那么 memcache 是更好的选择。但如果它会更多,那么你可以考虑基于文件的缓存。

但请记住,由于磁盘 I/O,基于文件的缓存总会有延迟

编辑

如果您的缓存大小更大,那么我会推荐基于文件的缓存。

于 2012-11-22T10:55:08.973 回答