(→Status of porting to SQLite) |
(→Status of porting to SQLite) |
||
| Line 77: | Line 77: | ||
| | | | ||
|use "DELETE FROM..." | |use "DELETE FROM..." | ||
| + | |- | ||
| + | |void KMFolderIndex::fillMessageDict() | ||
| + | |yes | ||
| + | | | ||
| + | |no change as it just inserts messages from KMFolderIndex::mMsgList into KMMsgDict | ||
| + | |- | ||
| + | |KMMsgInfo* KMFolderIndex::setIndexEntry( int idx, KMMessage *msg ) | ||
| + | |yes | ||
| + | | | ||
| + | |no change as it just sets creates a new KMMsgInfo object and inserts it into KMFolderIndex::mMsgList | ||
| + | |- | ||
| + | |bool KMFolderIndex::recreateIndex() | ||
| + | |yes | ||
| + | | | ||
| + | |no changes as it just calls createIndexFromContents() and readIndex() | ||
|- | |- | ||
|off_t KMFolderIndex::mHeaderOffset | |off_t KMFolderIndex::mHeaderOffset | ||
| Line 87: | Line 102: | ||
| | | | ||
|these members are unused for SQLite mode because are related to file strorage; moreover byte order and size of long is handled by SQLite in a portable way | |these members are unused for SQLite mode because are related to file strorage; moreover byte order and size of long is handled by SQLite in a portable way | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
|} | |} | ||
There are issues with locking index files for KMail folders and mmap()/munmap() operations on Windows. Therefore, SQLite-based indices are in development. This page presents detailed development notes for this task.
Started: jstaniek 11:35, 23 April 2008 (CEST)
Contents |
| TOPIC | PORTED | TESTED | NOTES |
|---|---|---|---|
| QString KMFolderIndex::indexLocation() | yes | added .db suffix to indicate the index is sqlite-based | |
| int KMFolderIndex::updateIndex() | yes | no changes | |
| int KMFolderIndex::writeIndex( bool createEmptyIndex ) | |||
| bool KMFolderIndex::readIndex() | |||
| int KMFolderIndex::count(bool cache) | yes | no changes | |
| bool KMFolderIndex::readIndexHeader(int *gv) | |||
| bool KMFolderIndex::updateIndexStreamPtr(bool) | |||
| KMFolderIndex::IndexStatus KMFolderIndex::indexStatus() | |||
| void KMFolderIndex::truncateIndex() | use "DELETE FROM..." | ||
| void KMFolderIndex::fillMessageDict() | yes | no change as it just inserts messages from KMFolderIndex::mMsgList into KMMsgDict | |
| KMMsgInfo* KMFolderIndex::setIndexEntry( int idx, KMMessage *msg ) | yes | no change as it just sets creates a new KMMsgInfo object and inserts it into KMFolderIndex::mMsgList | |
| bool KMFolderIndex::recreateIndex() | yes | no changes as it just calls createIndexFromContents() and readIndex() | |
| off_t KMFolderIndex::mHeaderOffset | replace its public use (e.g. in KMFolderIndex::truncateIndex()) with additional bool indexOpened() | ||
| FILE* KMFolderIndex::mIndexStream, uchar* mIndexStreamPtr, size_t mIndexStreamPtrLength, bool mIndexSwapByteOrder, int mIndexSizeOfLong | these members are unused for SQLite mode because are related to file strorage; moreover byte order and size of long is handled by SQLite in a portable way |