MXS-1474 Update cache documentation

This commit is contained in:
Johan Wikman
2017-10-25 10:08:36 +03:00
parent cb5c22269e
commit 5068d49cf7

View File

@ -22,6 +22,10 @@ been started with `BEGIN`, `START TRANSACTION` or `START TRANSACTION READ
WRITE`, then the cache will be used and populated until the first `UPDATE`, WRITE`, then the cache will be used and populated until the first `UPDATE`,
`INSERT` or `DELETE` statement is encountered. `INSERT` or `DELETE` statement is encountered.
That is, in default mode the cache effectively causes the system to behave
as if the _isolation level_ would be `READ COMMITTED`, irrespective of what
the isolation level of the backends actually is.
The default behaviour can be altered using the configuration parameter The default behaviour can be altered using the configuration parameter
[cache_inside_transactions](#cache_inside_transactions). [cache_inside_transactions](#cache_inside_transactions).
@ -264,11 +268,9 @@ are active transactions:
The cache will be populated if the transaction is explicitly read only The cache will be populated if the transaction is explicitly read only
or if no non-SELECT statement has been encounted. or if no non-SELECT statement has been encounted.
* `read_only_transactions`: The cache will be used and populated inside * `read_only_transactions`: The cache will be used and populated inside
_explicitly_ read-only transactions. If the transaction is not explicitly _explicitly_ read-only transactions.
read only, the cache will be populated (but not used) until the first
non-SELECT statement.
* `all_transactions`: The cache will be used and populated inside * `all_transactions`: The cache will be used and populated inside
explicitly read-only transactions. Inside transactions that are not _explicitly_ read-only transactions. Inside transactions that are not
explicitly read-only, the cache will be used and populated _until_ the explicitly read-only, the cache will be used and populated _until_ the
first non-SELECT statement. first non-SELECT statement.
``` ```