Skip to content

Enable caching deterministic scripted queries in shard request cache #49466

Closed
@stu-elastic

Description

@stu-elastic

Related: #49321

Right now, there is no way to know if scripts are deterministic or not. To ensure correctness, these scripts skip the shard request cache.

Painless scripts are deterministic if they only use deterministic APIs, eg not randomUUID. We'll have to evaluate other languages.

If a script is deterministic, it's results are cachable.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions