Skip to content

fix: reduce fds for daemon db connections#584

Open
damonhayhurst-neuraco wants to merge 1 commit into
mainfrom
fix/reduce-fds-for-dbs-connections
Open

fix: reduce fds for daemon db connections#584
damonhayhurst-neuraco wants to merge 1 commit into
mainfrom
fix/reduce-fds-for-dbs-connections

Conversation

@damonhayhurst-neuraco
Copy link
Copy Markdown
Contributor

@damonhayhurst-neuraco damonhayhurst-neuraco commented Apr 29, 2026

Features

  • Reduce number of loose file descriptors that access sqlite.

Justification

  • all read/writes are atomic

@damonhayhurst-neuraco damonhayhurst-neuraco added the version:minor non-breaking feature updates, new functions or endpoints label Apr 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Consider updating changelogs/pending-changelog.md with a summary of this change for the release notes. This is optional and non-blocking.

Copy link
Copy Markdown
Member

@CougarTasker CougarTasker left a comment

Choose a reason for hiding this comment

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

LGTM \w comment

self._engine: AsyncEngine = create_async_engine(
f"sqlite+aiosqlite:///{db_path}",
future=True,
pool_size=1,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Question: can you check this pool size and how it effects performance, try a few values and see how it effects perfomace timings

@damonhayhurst-neuraco damonhayhurst-neuraco force-pushed the fix/reduce-fds-for-dbs-connections branch from 3b9c975 to f92ec37 Compare April 29, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:minor non-breaking feature updates, new functions or endpoints

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants