Skip to content

Add support for literal mode for InTuples with lots of entries#3165

Merged
rob-bygrave merged 1 commit intomasterfrom
feature/Lists-partitions
Aug 16, 2023
Merged

Add support for literal mode for InTuples with lots of entries#3165
rob-bygrave merged 1 commit intomasterfrom
feature/Lists-partitions

Conversation

@rbygrave
Copy link
Copy Markdown
Member

So as to not exceed the limit on bind values, the InTuples expression can go into literal mode where it uses literal values for supported types - Numbers, Strings, UUID, and LocalDate.

So as to not exceed the limit on bind values, the InTuples expression can
go into literal mode where it uses literal values for supported types -
Numbers, Strings, UUID, and LocalDate.
@rob-bygrave rob-bygrave added this to the 13.20.2 milestone Aug 16, 2023
for (String property : properties) {
builder.append(property).append("-");
if (literalMode) {
builder.append(UUID.randomUUID());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could look for improvement here. This is here to defeat the ebean internal compiled query plan cache. It has a default TTL of 5 mins and query execution stats are collected in background. An improvement here might effectively disable the ability to collect query plans (if the compiled query plan is removed quickly) but maybe that is better than holding the compiled query plan that is never expected to be reused.

@rob-bygrave rob-bygrave merged commit 9e4007d into master Aug 16, 2023
@rob-bygrave rob-bygrave deleted the feature/Lists-partitions branch August 16, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants