1
0
Fork 0
arangodb/arangod/MMFiles
Michael Hackstein 83a8c7281d Merge branch 'engine-api' of github.com:arangodb/arangodb into engine-api 2017-03-02 11:12:06 +00:00
..
MMFilesAllocatorThread.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesAllocatorThread.h
MMFilesAqlFunctions.cpp renamed methods 2017-02-27 11:22:44 +01:00
MMFilesAqlFunctions.h renaming 2017-02-13 15:18:40 +01:00
MMFilesCleanupThread.cpp renamed classes 2017-02-27 11:40:15 +01:00
MMFilesCleanupThread.h
MMFilesCollection.cpp fix crashes 2017-02-28 17:59:28 +01:00
MMFilesCollection.h Merge branch 'engine-api' of github.com:arangodb/arangodb into engine-api 2017-02-27 13:01:12 +01:00
MMFilesCollectionReadLocker.h Moved CollectionRead/WriteLocker to MMFiles. Also moved cleanupIndexes to MMFilesCollection 2017-02-14 15:12:36 +01:00
MMFilesCollectionWriteLocker.h Moved CollectionRead/WriteLocker to MMFiles. Also moved cleanupIndexes to MMFilesCollection 2017-02-14 15:12:36 +01:00
MMFilesCollectorCache.h renamed classes 2017-02-27 11:40:15 +01:00
MMFilesCollectorThread.cpp renamed classes 2017-02-28 17:59:48 +01:00
MMFilesCollectorThread.h Moved ditches into MMFiles. 2017-02-23 09:02:34 +01:00
MMFilesCompactionLocker.h renamed classes 2017-02-28 17:59:48 +01:00
MMFilesCompactorThread.cpp renamed classes 2017-02-28 17:59:48 +01:00
MMFilesCompactorThread.h renaming 2017-02-13 15:18:40 +01:00
MMFilesDatafile.cpp move encoding functions into their own file 2017-02-14 12:57:15 +01:00
MMFilesDatafile.h
MMFilesDatafileHelper.h move encoding functions into their own file 2017-02-14 12:57:15 +01:00
MMFilesDatafileStatistics.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesDatafileStatistics.h
MMFilesDitch.cpp renamed classes 2017-02-27 11:40:15 +01:00
MMFilesDitch.h renamed classes 2017-02-27 11:40:15 +01:00
MMFilesDocumentOperation.cpp Moved primaryIndex knowledge out of Logical Collection. Also moved logic for close into MMFiles 2017-02-21 14:12:07 +01:00
MMFilesDocumentOperation.h renaming 2017-02-13 15:18:40 +01:00
MMFilesDocumentPosition.h
MMFilesEdgeIndex.cpp renaming 2017-02-27 14:38:27 +01:00
MMFilesEdgeIndex.h renaming 2017-02-13 15:18:40 +01:00
MMFilesEngine.cpp remove dependency on MMFilesLogfileManager 2017-03-01 15:50:10 +01:00
MMFilesEngine.h remove dependency on MMFilesLogfileManager 2017-03-01 15:50:10 +01:00
MMFilesFulltextIndex.cpp renaming 2017-02-13 15:18:40 +01:00
MMFilesFulltextIndex.h renaming 2017-02-13 15:18:40 +01:00
MMFilesGeoIndex.cpp renaming 2017-02-13 15:18:40 +01:00
MMFilesGeoIndex.h renaming 2017-02-13 15:18:40 +01:00
MMFilesHashIndex.cpp renaming 2017-02-27 14:38:27 +01:00
MMFilesHashIndex.h moved helper classes into their own file 2017-02-14 12:35:34 +01:00
MMFilesIndexElement.cpp
MMFilesIndexElement.h
MMFilesIndexFactory.cpp fix index ids 2017-02-01 10:39:21 +01:00
MMFilesIndexFactory.h
MMFilesLogfileManager.cpp don't let read-only transactions block the WAL collector 2017-02-24 17:03:42 +01:00
MMFilesLogfileManager.h don't let read-only transactions block the WAL collector 2017-02-24 17:03:42 +01:00
MMFilesPathBasedIndex.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesPathBasedIndex.h
MMFilesPersistentIndex.cpp Moved primaryIndex knowledge out of Logical Collection. Also moved logic for close into MMFiles 2017-02-21 14:12:07 +01:00
MMFilesPersistentIndex.h renaming 2017-02-13 15:18:40 +01:00
MMFilesPersistentIndexFeature.cpp renamed feature 2017-02-14 12:35:54 +01:00
MMFilesPersistentIndexFeature.h renamed feature 2017-02-14 12:35:54 +01:00
MMFilesPersistentIndexKeyComparator.cpp
MMFilesPersistentIndexKeyComparator.h
MMFilesPrimaryIndex.cpp renaming 2017-02-27 14:38:27 +01:00
MMFilesPrimaryIndex.h Moved truncate logic from Transaction::Methods to MMFilesCollection. It can do optimizations if close to the DB layer 2017-02-14 13:50:29 +01:00
MMFilesRemoverThread.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesRemoverThread.h
MMFilesRevisionsCache.cpp
MMFilesRevisionsCache.h
MMFilesSkiplist.h
MMFilesSkiplistIndex.cpp moved helper classes into their own file 2017-02-14 12:35:34 +01:00
MMFilesSkiplistIndex.h moved helper classes into their own file 2017-02-14 12:35:34 +01:00
MMFilesSynchronizerThread.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesSynchronizerThread.h
MMFilesToken.h
MMFilesTransactionCollection.cpp Moved isVolatile into MMfiles collection. 2017-02-23 14:56:54 +01:00
MMFilesTransactionCollection.h renaming 2017-02-13 15:18:40 +01:00
MMFilesTransactionContextData.cpp removed unused includes 2017-02-27 17:29:28 +01:00
MMFilesTransactionContextData.h removed unused includes 2017-02-27 17:29:28 +01:00
MMFilesTransactionState.cpp Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-02-24 17:51:59 +01:00
MMFilesTransactionState.h create engine-specific transaction context data 2017-02-27 17:05:30 +01:00
MMFilesWalLogfile.cpp move encoding functions into their own file 2017-02-14 12:57:15 +01:00
MMFilesWalLogfile.h remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesWalMarker.h move encoding functions into their own file 2017-02-14 12:57:15 +01:00
MMFilesWalRecoverState.cpp Fixed a classical bug. true/false is always way harder to get right than extremly complicated datatypes... 2017-03-01 22:07:52 +01:00
MMFilesWalRecoverState.h
MMFilesWalRecoveryFeature.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesWalRecoveryFeature.h
MMFilesWalSlot.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
MMFilesWalSlot.h
MMFilesWalSlots.cpp move encoding functions into their own file 2017-02-14 12:57:15 +01:00
MMFilesWalSlots.h
MMFilesWalSyncRegion.h
README.md remove transferMarkers from StorageEngine.h 2017-02-21 16:00:37 +01:00
fulltext-common.h
fulltext-handles.cpp
fulltext-handles.h
fulltext-index.cpp remove logging for non-topics 2017-02-10 09:32:50 +01:00
fulltext-index.h
fulltext-list.cpp
fulltext-list.h
fulltext-query.cpp
fulltext-query.h
fulltext-result.cpp
fulltext-result.h
geo-index.cpp
geo-index.h

README.md

MMFilesEngine

How operations are stored - Overview

All operations like insert or remove are written as markers to a write ahead log (WAL). This WAL consists of files of a certain size and if such a file is full (or is manually flushed), all relevant markers are transferred (transferMarkers()) to the journals of the respective collections. During the transfer any obsolete markers will be thrown away: a sequence of insert, remove, insert on the same document will result in the last insert discarding the previous operations. When a journal file of size (journalSize()) is full, it will be sealed and renamed. By applying these operations it will become a datafile that is read-only. Datafiles will eventually be merged by a compactor thread that does about the same work as the transferMarkers function, reducing the size of the stored data.

Ditches

Ditches are used to pin objects in WAL or journal as long as they are used by other operations.