3 ms·
Great suggestions. Also: Parse the SQL and make sure it is what you think it is. Some parsers will give you a list of all tables accessed. I use node-sql-parse
by glutamate 5y ago
Great suggestions. Also:
Parse the SQL and make sure it is what you think it is. Some parsers will give you a list of all tables accessed. I use node-sql-parser.
Run in a read-only transaction: SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY;