Skip to content

Cache the realm server database during testing#3835

Draft
IanCal wants to merge 20 commits intomainfrom
cache-realm-server-test-dbs
Draft

Cache the realm server database during testing#3835
IanCal wants to merge 20 commits intomainfrom
cache-realm-server-test-dbs

Conversation

@IanCal
Copy link
Contributor

@IanCal IanCal commented Jan 13, 2026

It takes a long time to index a new server, but we index the same cards repeatedly.

This PR uses the permissions and filesystem contents, the url and if there are published realms within a server and in one specific startup (setupPermissionedRealms) it will cache the database as a template database after initialising. Then when the same contents are requested, start by populating the database with the already indexed content.

Also some cleanup removing realm servers we never use, improving caching etc.

@IanCal IanCal marked this pull request as draft January 13, 2026 20:49
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb580ff49d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 38m 10s ⏱️ - 2m 0s
1 871 tests ±0  1 856 ✅ +1  15 💤 ±0  0 ❌ ±0 
1 886 runs  ±0  1 871 ✅ +2  15 💤 ±0  0 ❌  - 1 

Results for commit f6e5bd0. ± Comparison against base commit 62d6295.

♻️ This comment has been updated with latest results.

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.

1 participant