InTuples literal mode - don't cache ebean compiled query plan

- Don't cache ebean compiled query plan when InTuples goes into literal mode
- Postgres maxInBinding = 32_000;
- SQLite maxInBinding = 800;
- Note that not caching the compiled query plan means that metrics visitor isn't
  going to see it, we lose collection of that query execution metric. We might
  need a plan to fix this later.
This commit is contained in:
robin.bygrave
2023-08-17 15:08:16 +12:00
parent 9e4007d25a
commit 76c889c6d9
12 changed files with 55 additions and 24 deletions
@@ -13,6 +13,7 @@ public class SQLitePlatform extends DatabasePlatform {
public SQLitePlatform() {
super();
this.platform = Platform.SQLITE;
this.maxInBinding = 800; // technically 999
this.dbIdentity.setIdType(IdType.IDENTITY);
this.dbIdentity.setSupportsGetGeneratedKeys(false);
this.dbIdentity.setSupportsSequence(false);