Skip to content

Conversation

@hf-kklein
Copy link
Contributor

No description provided.

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 optimizes the performance of bulk insert operations in create_db_and_populate_with_ahb_view by applying SQLite-specific PRAGMA settings and batching inserts.

Key changes:

  • Add SQLite PRAGMA optimizations for faster bulk inserts (disable synchronous writes, enable WAL mode, increase cache size, use memory for temp storage, and set exclusive locking during bulk operations)
  • Replace individual session.add() calls with batched session.add_all() for better performance
  • Remove redundant session.flush() calls that are unnecessary when followed by session.commit()

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hf-kklein hf-kklein self-assigned this Dec 4, 2025
@hf-kklein hf-kklein merged commit 6bf9886 into main Dec 4, 2025
21 checks passed
@hf-kklein hf-kklein deleted the perf2 branch December 4, 2025 20:10
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