perf: optimize database operations for faster initial load time#7
Closed
devin-ai-integration[bot] wants to merge 3 commits into
Closed
perf: optimize database operations for faster initial load time#7devin-ai-integration[bot] wants to merge 3 commits into
devin-ai-integration[bot] wants to merge 3 commits into
Conversation
- Replace modDbId with specialized database IDs (trustedSitesDbId, blockedReleasesDbId, featuredReleasesDbId, contentCategoriesDbId) - Update all methods to use the appropriate specialized database ID - Add DatabaseConfig support to constructor and createOrbiter function - Fix _init method to properly follow all specialized databases - This change reduces the total number of internal DBs by consolidating database operations Co-Authored-By: Benjamin Arntzen <zorlin@gmail.com>
…initial load time Co-Authored-By: Benjamin Arntzen <zorlin@gmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Performance Optimization for Orbiter Core
This PR optimizes the database structure and federation mechanism in Orbiter Core to significantly improve initial loading times.
Changes
SiteDbStructuretype to consolidate site configuration datainitialBatchSizeparameter for faster initial renderinglistenForReleasesandlistenForCollectionsfunctions to reduce the N*M subscription problemisLoadedflag to track site loading statusouvrirBdComptetosuivreBdDicTesting
pnpm testPerformance Impact
These changes address the primary scalability concerns in the federation/aggregation mechanism by:
Link to Devin run: https://app.devin.ai/sessions/959e61099709471599b00bbdf05c32a0
Requested by: Benjamin Arntzen (zorlin@gmail.com)