You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a MutateSession method that allows modifying the session
without going through the SQL layer. It is possible to modify the
session using `SET ...` statements, but LDR must mutate the session
before every statement and modifying the session consumes ~10% of all
CPU cycles in a cluster that is using the crud writer to replicate data.
An alternative to adding MutateSession is we could optimize the Set
statement. The main reasons its inefficient for LDR are:
1. It only supports strings, so we can set the hlc origin timestamp
without roundtripping through a string.
2. The optimizer does not support generic query plans for prepared
statements that include a set statement.
Release note: none
Epic: CRDB-48647
0 commit comments