VladRodionov / bigbase

BigBase - read optimized, fully HBase-compatible, NoSQL Data Store
GNU Affero General Public License v3.0
9 stars 1 forks source link

Consider using single FileChannel per file in file - based L3 cache #9

Open VladRodionov opened 10 years ago

VladRodionov commented 10 years ago

FileChannel.read(ByteBuffer, long pos) can be used for parallel reading.

See FileExtStorage implementation. We keep list of open RandomAccessFile handles per actual file. Default size is 5. We need this to avoid thread issues. The assumption was accessing RandomAccessFile from multiple threads is not thread safe. It seems that having just one FileChannel per file suffice.