Joost Hopmans e683db244e Merge pull request #639 in KC/kopanocore from ~BSIMONSEN/kopanocore:kc5-sqllimit to master 7 éve
..
include 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECABObjectTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECABObjectTable.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECAttachmentStorage.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
ECAttachmentStorage.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECCacheManager.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
ECCacheManager.h 52d0f950fc libserver: use move semantics for ECsIndexProp 7 éve
ECConvenientDepthABObjectTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECConvenientDepthABObjectTable.h 20e9ee58b0 libserver: repair type punning 8 éve
ECConvenientDepthObjectTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECConvenientDepthObjectTable.h 20e9ee58b0 libserver: repair type punning 8 éve
ECConversion.cpp a55d10f351 provider: consistent use of s_alloc/s_free (3/6) 7 éve
ECConversion.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECDBDef.h f5807d31ad libserver: let PRI keys not be NULL 8 éve
ECDatabase.h 08d8fc957d libserver: set default class member values 7 éve
ECDatabaseFactory.cpp be6f6599ce libserver: replace ECDatabaseMySQL name by ECDatabase 7 éve
ECDatabaseFactory.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECDatabaseMySQL.cpp dbda3275c1 Merge pull request #630 in KC/kopanocore from ~BSIMONSEN/kopanocore:use-autocommit-0-where-possible to master 7 éve
ECDatabaseUpdate.cpp b1afdf7ee7 libserver: simplify small functions to be even smaller 7 éve
ECDatabaseUpdate.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECDatabaseUtils.cpp f160ba86a2 treewide: simplify small functions to be even smaller 7 éve
ECDatabaseUtils.h f88f537775 treewide: drop redundant access control specifiers 8 éve
ECGenProps.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
ECGenProps.h 355bdaf00a libserver: drop useless access specifier in class ECGenProps 7 éve
ECGenericObjectTable.cpp 4f6090e0b6 Merge branch 'release' 7 éve
ECGenericObjectTable.h f88f537775 treewide: drop redundant access control specifiers 8 éve
ECICS.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
ECICS.h 6e15c6f498 libserver: remove unused function CleanupChangesTable 8 éve
ECICSHelpers.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECICSHelpers.h f88f537775 treewide: drop redundant access control specifiers 8 éve
ECIndexer.cpp d4e9ba8d0f provider: consistent use of s_alloc/s_free (4/6) 7 éve
ECIndexer.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECKrbAuth.cpp 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECKrbAuth.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECLockManager.cpp 85f8454abc libserver: use shared_mutex class in ECLockManager 7 éve
ECLockManager.h 85f8454abc libserver: use shared_mutex class in ECLockManager 7 éve
ECMAPI.h 2a5437fbcc Initial commit 8 éve
ECMailBoxTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECMailBoxTable.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECMultiStoreTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECMultiStoreTable.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECNotification.cpp 2f624c0389 provider: consistent use of s_alloc/s_free (5/6) 7 éve
ECNotification.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECNotificationManager.cpp f160ba86a2 treewide: simplify small functions to be even smaller 7 éve
ECNotificationManager.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECPamAuth.cpp 3166997125 treewide: replace type repetitions by "auto" in casting statements 7 éve
ECPamAuth.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECPluginFactory.cpp 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECPluginFactory.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECPluginSharedData.cpp 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECS3Attachment.cpp 64c316f15e treewide: promote some reinterpret_cast to static_cast 7 éve
ECS3Attachment.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECSearchFolders.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
ECSearchFolders.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECSearchObjectTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECSearchObjectTable.h 20e9ee58b0 libserver: repair type punning 8 éve
ECSecurity.cpp f160ba86a2 treewide: simplify small functions to be even smaller 7 éve
ECSecurity.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECServerEntrypoint.cpp 056ecbba15 provider: stash SOAPINFO casting into separate function 7 éve
ECServerEntrypoint.h 056ecbba15 provider: stash SOAPINFO casting into separate function 7 éve
ECSession.cpp f62d03393f libserver: replace "select" by "poll" 7 éve
ECSession.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECSessionGroup.cpp 91e75f76e3 provider: consistent use of s_alloc/s_free (6/6) 7 éve
ECSessionGroup.h b22f293ecd build: resolve some clang warnings 8 éve
ECSessionManager.cpp 3166997125 treewide: replace type repetitions by "auto" in casting statements 7 éve
ECSessionManager.h 427df3e8f7 libserver: use shared_mutex class in ECSessionManager 7 éve
ECStatsCollector.cpp 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECStatsCollector.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECStatsTables.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECStatsTables.h 20e9ee58b0 libserver: repair type punning 8 éve
ECStoreObjectTable.cpp b50bc6f8f5 libserver: reduce nesting level in source 7 éve
ECStoreObjectTable.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECStringCompat.cpp e13c166ef4 treewide: deindent case label statements (6/7) 8 éve
ECStringCompat.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECSubRestriction.cpp 1308066560 libserver: release SQL result from ~DB_RESULT 7 éve
ECSubRestriction.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECTPropsPurge.cpp f160ba86a2 treewide: simplify small functions to be even smaller 7 éve
ECTPropsPurge.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECTableManager.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECTableManager.h 0f1c330ea3 libserver: use initialization and in-class defaults 8 éve
ECTestProtocol.cpp 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECTestProtocol.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
ECUserManagement.cpp b50bc6f8f5 libserver: reduce nesting level in source 7 éve
ECUserManagement.h 1b08d97d15 build: work around gcc 4.7 dtor behavior 8 éve
ECUserStoreTable.cpp 6f49c71215 libserver: gracefully handle allocation failures 7 éve
ECUserStoreTable.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
README.md 0d3875268e doc: update code structure documentation 8 éve
StorageUtil.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
StorageUtil.h 2d60ab3890 treewide: place all symbols into a namespace 8 éve
StreamUtil.cpp e9b4fdd12e Merge KC-PR-631 7 éve
StreamUtil.h a50ba602ac misc: add static/const qualifiers for functions and data 7 éve
cmd.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
cmd.hpp 2d60ab3890 treewide: place all symbols into a namespace 8 éve
cmdutil.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
cmdutil.hpp 26dffb479b build: ensure exception includes are present 7 éve
logontime.cpp 272325e3c4 libserver: add further LIMIT clauses to SELECT statements 7 éve
logontime.hpp 2d60ab3890 treewide: place all symbols into a namespace 8 éve

README.md

Libserver

ECCacheManager

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------------------------------------------------------------+