Class | OpenWFE::Extras::CachedDbPersistedEngine |
In: |
lib/openwfe/extras/engine/db_persisted_engine.rb
|
Parent: | DbPersistedEngine |
This OpenWFEru engine features database persistence (thanks to ActiveRecord), with a cache (for faster read operations) and a threaded wrapper (for buffering out unecessary write operations), hence it‘s fast (of course its‘s slower than in-memory storage.
# File lib/openwfe/extras/engine/db_persisted_engine.rb, line 84 84: def build_expression_storage () 85: 86: @application_context[:expression_cache_size] ||= 1000 87: 88: init_service( 89: S_EXPRESSION_STORAGE, 90: CacheExpressionStorage) 91: 92: #init_service( 93: # S_EXPRESSION_STORAGE + ".1", 94: # DbExpressionStorage) 95: init_service( 96: S_EXPRESSION_STORAGE + ".1", 97: ThreadedDbExpressionStorage) 98: end