Oliver Zeigermann wrote:
P.S.: An additional mode that has global cache for read-only request is
already in preparation. It will have the same isolation features as this
new one, but will cache more. This comes at the cost of not having the
clusterable feature.

Just checked in this third mode and an additional one that switches off all caching completely. This brings us these four caching modes:


- full (15 min for testsuite): Full inter-tx (global) and intra-tx caching, has weak isolation of transactions
- isolation-shadow (20 min for testsuite): Intra-tx caching and global inter-tx caching when not inside transactions, shadows isolation of the underlying store
- cluster (30 min for testsuite): Intra-tx caching only, shadows isolation of the underlying store and allows for clustering as there is no global cache
- off (*very long* for testsuite): No caching at all


I was very surprised how easy it was to implement the isolation-shadow mode, so even though all tests passed, there might be errors in it...

Configurable as parameter paramter to store definitions like for example:

     <store name="TxFileStore">
        <parameter name="cache-mode">cluster</parameter>
        ...
     </store>

or

     <store name="SQLServerStore">
        <parameter name="cache-mode">isolation-shadow</parameter>
        ...
     </store>

Oliver

P.S.: Switching off caching completely revealed a bug that is somewhere in security or code related to it. I will investigate this further...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to