Skip to content

Conversation

@sdwoodbury
Copy link
Collaborator

I found that my genesis tests on the dev cluster inserted the irises and graph links into the CPU database instead of just keeping them in memory (when SMPC__DISABLE_PERSISTENCE was true). we don't really need this flag for production but not having it makes testing significantly more difficult because i would then have to either delete items from the graph or add more irises to the GPU database.

This PR adds a separate code path to allow testing without persistence.

log_info(format!(
"Job Results :: Persisted to dB: batch-id={batch_id}"
));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note that this log was removed. it seems redundant.

log_info(format!(
"Job Results :: Persisted to dB: modification_id={modification_id}"
));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the disable_persistence configuration flag in the genesis indexing process to enable testing without database writes. The changes introduce conditional logic to skip database operations when persistence is disabled while maintaining in-memory processing.

Key changes:

  • Added conditional checks around all database persistence operations (backup, modifications table cleanup, batch/modification persistence)
  • Updated logging to indicate when operations are skipped due to disabled persistence
  • Added persistence status to startup logging and warning when using backup source with persistence disabled

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sdwoodbury sdwoodbury changed the title make genesis respect the config flag for disable_persitence make genesis respect the config flag for disable_persistence Dec 29, 2025
@sdwoodbury sdwoodbury requested a review from siajasl December 29, 2025 17:10
@sdwoodbury sdwoodbury marked this pull request as draft December 31, 2025 03:56
@sdwoodbury
Copy link
Collaborator Author

testing found that changes are still getting persisted. needs fixing.

@sdwoodbury sdwoodbury force-pushed the sw/fix_genesis_persistence branch from 06e5856 to d04250e Compare January 13, 2026 16:30
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.

2 participants