liuis / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

enable preload hot data in memtable? #198

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
recently use leveldb as cache. everyday i have to load new data to leveldb. 
this is my logic:

close old db;
open new db;

this is the problem:
after open new db, when new query arrives, it can not hit the new db's cache.

is there any way to preload hot day into leveldb?

many thansk~
xuqiang

Original issue reported on code.google.com by xq.1990....@gmail.com on 9 Aug 2013 at 3:40