Skip to content

Improve handling of stored queries #781

Open
@naknomum

Description

@naknomum

Context

currently "stored queries" (as used by our OpenSearch functionality) are stored very simply as json on the filesystem. this is functional, but will accumulate over time and needs better architecture.

Requirements

The current proposed solution:

  • move to a proper java class that is persisted in the database instead
  • have a creation timestamp, to allow removal of queries that are "old enough" to be expired/deleted
  • all proposed properties: id, created, indexName, creator, query (mirrors current file-based queries)
  • background process to remove expired queries

Technical note

this also allows for possible later development of user-ownership and "named" queries for more permanent storage

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnew or improvements on existing featuresmodernizationUpdating the tech stack iterativelyopensearchanything that touches on opensearch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions