Joost Hopmans e683db244e Merge pull request #639 in KC/kopanocore from ~BSIMONSEN/kopanocore:kc5-sqllimit to master | 7 gadi atpakaļ | |
---|---|---|
.. | ||
include | 8 gadi atpakaļ | |
ECABObjectTable.cpp | 7 gadi atpakaļ | |
ECABObjectTable.h | 8 gadi atpakaļ | |
ECAttachmentStorage.cpp | 7 gadi atpakaļ | |
ECAttachmentStorage.h | 8 gadi atpakaļ | |
ECCacheManager.cpp | 7 gadi atpakaļ | |
ECCacheManager.h | 7 gadi atpakaļ | |
ECConvenientDepthABObjectTable.cpp | 7 gadi atpakaļ | |
ECConvenientDepthABObjectTable.h | 8 gadi atpakaļ | |
ECConvenientDepthObjectTable.cpp | 7 gadi atpakaļ | |
ECConvenientDepthObjectTable.h | 8 gadi atpakaļ | |
ECConversion.cpp | 7 gadi atpakaļ | |
ECConversion.h | 8 gadi atpakaļ | |
ECDBDef.h | 8 gadi atpakaļ | |
ECDatabase.h | 7 gadi atpakaļ | |
ECDatabaseFactory.cpp | 7 gadi atpakaļ | |
ECDatabaseFactory.h | 8 gadi atpakaļ | |
ECDatabaseMySQL.cpp | 7 gadi atpakaļ | |
ECDatabaseUpdate.cpp | 7 gadi atpakaļ | |
ECDatabaseUpdate.h | 8 gadi atpakaļ | |
ECDatabaseUtils.cpp | 7 gadi atpakaļ | |
ECDatabaseUtils.h | 8 gadi atpakaļ | |
ECGenProps.cpp | 7 gadi atpakaļ | |
ECGenProps.h | 7 gadi atpakaļ | |
ECGenericObjectTable.cpp | 7 gadi atpakaļ | |
ECGenericObjectTable.h | 8 gadi atpakaļ | |
ECICS.cpp | 7 gadi atpakaļ | |
ECICS.h | 8 gadi atpakaļ | |
ECICSHelpers.cpp | 7 gadi atpakaļ | |
ECICSHelpers.h | 8 gadi atpakaļ | |
ECIndexer.cpp | 7 gadi atpakaļ | |
ECIndexer.h | 8 gadi atpakaļ | |
ECKrbAuth.cpp | 8 gadi atpakaļ | |
ECKrbAuth.h | 8 gadi atpakaļ | |
ECLockManager.cpp | 7 gadi atpakaļ | |
ECLockManager.h | 7 gadi atpakaļ | |
ECMAPI.h | 8 gadi atpakaļ | |
ECMailBoxTable.cpp | 7 gadi atpakaļ | |
ECMailBoxTable.h | 8 gadi atpakaļ | |
ECMultiStoreTable.cpp | 7 gadi atpakaļ | |
ECMultiStoreTable.h | 8 gadi atpakaļ | |
ECNotification.cpp | 7 gadi atpakaļ | |
ECNotification.h | 8 gadi atpakaļ | |
ECNotificationManager.cpp | 7 gadi atpakaļ | |
ECNotificationManager.h | 8 gadi atpakaļ | |
ECPamAuth.cpp | 7 gadi atpakaļ | |
ECPamAuth.h | 8 gadi atpakaļ | |
ECPluginFactory.cpp | 8 gadi atpakaļ | |
ECPluginFactory.h | 8 gadi atpakaļ | |
ECPluginSharedData.cpp | 8 gadi atpakaļ | |
ECS3Attachment.cpp | 7 gadi atpakaļ | |
ECS3Attachment.h | 8 gadi atpakaļ | |
ECSearchFolders.cpp | 7 gadi atpakaļ | |
ECSearchFolders.h | 8 gadi atpakaļ | |
ECSearchObjectTable.cpp | 7 gadi atpakaļ | |
ECSearchObjectTable.h | 8 gadi atpakaļ | |
ECSecurity.cpp | 7 gadi atpakaļ | |
ECSecurity.h | 8 gadi atpakaļ | |
ECServerEntrypoint.cpp | 7 gadi atpakaļ | |
ECServerEntrypoint.h | 7 gadi atpakaļ | |
ECSession.cpp | 7 gadi atpakaļ | |
ECSession.h | 8 gadi atpakaļ | |
ECSessionGroup.cpp | 7 gadi atpakaļ | |
ECSessionGroup.h | 8 gadi atpakaļ | |
ECSessionManager.cpp | 7 gadi atpakaļ | |
ECSessionManager.h | 7 gadi atpakaļ | |
ECStatsCollector.cpp | 8 gadi atpakaļ | |
ECStatsCollector.h | 8 gadi atpakaļ | |
ECStatsTables.cpp | 7 gadi atpakaļ | |
ECStatsTables.h | 8 gadi atpakaļ | |
ECStoreObjectTable.cpp | 7 gadi atpakaļ | |
ECStoreObjectTable.h | 8 gadi atpakaļ | |
ECStringCompat.cpp | 8 gadi atpakaļ | |
ECStringCompat.h | 8 gadi atpakaļ | |
ECSubRestriction.cpp | 7 gadi atpakaļ | |
ECSubRestriction.h | 8 gadi atpakaļ | |
ECTPropsPurge.cpp | 7 gadi atpakaļ | |
ECTPropsPurge.h | 8 gadi atpakaļ | |
ECTableManager.cpp | 7 gadi atpakaļ | |
ECTableManager.h | 8 gadi atpakaļ | |
ECTestProtocol.cpp | 8 gadi atpakaļ | |
ECTestProtocol.h | 8 gadi atpakaļ | |
ECUserManagement.cpp | 7 gadi atpakaļ | |
ECUserManagement.h | 8 gadi atpakaļ | |
ECUserStoreTable.cpp | 7 gadi atpakaļ | |
ECUserStoreTable.h | 8 gadi atpakaļ | |
README.md | 8 gadi atpakaļ | |
StorageUtil.cpp | 7 gadi atpakaļ | |
StorageUtil.h | 8 gadi atpakaļ | |
StreamUtil.cpp | 7 gadi atpakaļ | |
StreamUtil.h | 7 gadi atpakaļ | |
cmd.cpp | 7 gadi atpakaļ | |
cmd.hpp | 8 gadi atpakaļ | |
cmdutil.cpp | 7 gadi atpakaļ | |
cmdutil.hpp | 7 gadi atpakaļ | |
logontime.cpp | 7 gadi atpakaļ | |
logontime.hpp | 8 gadi atpakaļ |
The ECCacheManager caches some specific MySQL table items in a hash map. For example for the hierarchtable it is stored as . When the cache limit is hit, we randomly remove 5% of the items.
The sort() operation on unordered hashmaps is very expensive so you might notice cache spikes everytime the cache is cleaned. A possible solution is randomly removing the cache entries.
+-------------------------------------------------------------+
| |
| |
cache --+| xxxxxxxx xxxxxxxx xxxxxxxxxx xxxxxxxxxxxxxx|
limit | xxx x x x x x x |
| xxxx x x x |
| xxxx |
| xx |
| xxx |
| xxxx |
|xxx |
xx------------------------------------------------------------+