Skip to content

Caching Describe Table Call, Reducing Expensive Call To Backend#426

Merged
BboyAkers merged 12 commits into
stagefrom
aakers/cache-table-data
Dec 6, 2024
Merged

Caching Describe Table Call, Reducing Expensive Call To Backend#426
BboyAkers merged 12 commits into
stagefrom
aakers/cache-table-data

Conversation

@BboyAkers

@BboyAkers BboyAkers commented Nov 22, 2024

Copy link
Copy Markdown
Member

Ticket

STUDIO-122

Overview

  • Caching describe_table call to reduce the frequency of that expensive call being made to the backend
  • Describe Table cache is cleared every minute as well.

Manual Testing

Testing:

  1. Navigate to a table
  2. Interact with it via going to the next “page” of table data results

Expected Result:
The describe_table api call should not be triggered when navigating through pages of table data results.

Additional Notes:

The describe_table cache is reset every 60 seconds.

@BboyAkers
BboyAkers marked this pull request as draft November 22, 2024 01:06
@BboyAkers BboyAkers changed the title Caching Table Data, Reducing Caching Table Data, Reducing Expensive Calls To Backend Nov 22, 2024
@BboyAkers
BboyAkers force-pushed the aakers/cache-table-data branch from e03e1a1 to ce41e72 Compare December 4, 2024 20:13
@BboyAkers
BboyAkers changed the base branch from master to stage December 4, 2024 22:42
@BboyAkers BboyAkers changed the title Caching Table Data, Reducing Expensive Calls To Backend Caching Describe Table Call, Reducing Expensive Call To Backend Dec 4, 2024
@BboyAkers
BboyAkers marked this pull request as ready for review December 6, 2024 06:07

@Ethan-Arrowood Ethan-Arrowood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm with some minor improvements

Comment thread src/functions/instance/state/describeTableCache.js Outdated
Comment thread src/functions/instance/state/describeTableCache.js Outdated
Comment thread src/functions/instance/state/describeTableCache.js Outdated
Comment thread src/functions/instance/state/describeTableCache.js Outdated
@sonarqubecloud

sonarqubecloud Bot commented Dec 6, 2024

Copy link
Copy Markdown

@BboyAkers
BboyAkers requested a review from kriszyp December 6, 2024 19:23
@BboyAkers
BboyAkers merged commit 99f1689 into stage Dec 6, 2024
@dawsontoth
dawsontoth deleted the aakers/cache-table-data branch June 20, 2025 20:18
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