Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Efficient Database Fetching #57

Open
3 tasks
bvelitchkine opened this issue Nov 10, 2023 · 0 comments
Open
3 tasks

More Efficient Database Fetching #57

bvelitchkine opened this issue Nov 10, 2023 · 0 comments
Assignees
Labels
front Scope is front end of the app improvement Improvement of smthg that already existed infra Scope is infrastructure

Comments

@bvelitchkine
Copy link
Member

Context

Databases are fetched each and every time the dropdown select of the form mounts, which makes it fairly inefficient.

Solution

Launch

When a user uses the extension for the first time, and the dd select mounts, it should obviously look for eligible Notion databases. When that happens:

  • Databases that've been found should be saved in the extension's storage

Run

Afterwards, we should only fetch eligible databases when:

  • There are no db in the storage yet
  • The user manually asks for a database refresh from the side panel (to handle cases where he created and/or shared a new eligble db with the integration)

Resources

TODO: design wireframes in Figma to spec the new 'refresh db' (🔄) button.

@bvelitchkine bvelitchkine added improvement Improvement of smthg that already existed infra Scope is infrastructure front Scope is front end of the app labels Nov 10, 2023
@bvelitchkine bvelitchkine self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front Scope is front end of the app improvement Improvement of smthg that already existed infra Scope is infrastructure
Projects
None yet
Development

No branches or pull requests

1 participant