I presume metis needs gormv2 so prepared statements can be disabled or simple protocol enabled allowing pg_stat_statements to be introspected? AFAIK that’s not possible for codebases on gormv1
Dom Hutton
10/09/2023, 10:13 AM
Ahhh I see, you relying on tracing to get the query strings and then you rely on the user to run explains, supporting them in interpreting the results. Neat way to sidestep some issues.
a
Adam Furmanek
11/06/2023, 9:36 AM
We don't rely on the user to run explains. We configure the database to do that automatically and then extract the plans.
Adam Furmanek
11/06/2023, 9:36 AM
Apart from that, your description is correct đŸ™‚
d
Dom Hutton
11/06/2023, 11:09 AM
So you do use pg_stats? In that case my initial question stands. Are there limitations on what kind of adapter/driver you use in your code?