3 ms·
Forgot to add that to the article, but yes, we parse the statement and route SelectStmt[1] to replicas. If there is an UPDATE in the SELECT, we don't handle tha
by levkk 1y ago
Forgot to add that to the article, but yes, we parse the statement and route SelectStmt[1] to replicas. If there is an UPDATE in the SELECT, we don't handle that at the moment, but can be easily added.
[1] https://docs.rs/pg_query/6.0.0/pg_query/protobuf/struct.SelectStmt.html https://docs.rs/pg_query/6.0.0/pg_query/protobuf/struct.Sele...
- hamburglar 1y agoDo you have to traverse the syntax tree to determine that?
- levkk 1y agoYup.