Re: Re: index file and KeysCached

2010-12-06 Thread Sylvain Lebresne
2010/12/6 魏金仙 : > so when will index files be in the memory? The index files are never fully in memory (because it would quickly be too big). Hence, only a sample of this file is in memory (1 every 128 entry by default). When cassandra needs to know where a (row) key is on disk (for a given SStabl

Re:Re: index file and KeysCached

2010-12-06 Thread 魏金仙
so when will index files be in the memory? At 2010-12-06 00:54:48,"Brandon Williams" wrote: 2010/12/5 魏金仙 for each sstable, there is an index file, which is loaded in memory to locate a particular key's offset efficiently. Index files are not held in memory. and for each CF, KeysCached ca

Re: index file and KeysCached

2010-12-05 Thread Brandon Williams
2010/12/5 魏金仙 > for each sstable, there is an index file, which is loaded in memory to > locate a particular key's offset efficiently. > Index files are not held in memory. > and for each CF, KeysCached can be set to cache keys' location. > could you pls tell me the difference between the two?

index file and KeysCached

2010-12-05 Thread 魏金仙
for each sstable, there is an index file, which is loaded in memory to locate a particular key's offset efficiently. and for each CF, KeysCached can be set to cache keys' location. could you pls tell me the difference between the two? I'm wondering whether it's necessary to set "KeysCached" for a