Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: experimental support for using embedded-postgres as dev DB #28318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rugvip
Copy link
Member

@Rugvip Rugvip commented Dec 30, 2024

Hey, I just made a Pull Request!

Does what is says on the tin. This is on top of #28308 because it needs support for module-only packages, and is a parallel to #28315.

Some rough benchmarking shows that this slows down the initial startup time of the backend somewhat, while restarts are about the same speed for a small DB, but noticeably faster with a large DB. Of course performance isn't really the main concern with moving in this direction as long as it's good enough. The biggest upside would be to eventually be able to drop the need for supporting SQLite and thereby simplifying DB code a lot.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
@Rugvip Rugvip requested review from backstage-service and a team as code owners December 30, 2024 14:45
@Rugvip Rugvip requested review from benjdlambert and vinzscam and removed request for a team December 30, 2024 14:45
@Rugvip Rugvip mentioned this pull request Dec 31, 2024
5 tasks
Copy link
Member

@vinzscam vinzscam left a comment

Choose a reason for hiding this comment

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

🚀

@Rugvip
Copy link
Member Author

Rugvip commented Jan 13, 2025

Gonna try moving this one over to pglite as well, same as in #28315

Base automatically changed from rugvip/modules to master January 16, 2025 13:07
@Rugvip
Copy link
Member Author

Rugvip commented Jan 20, 2025

Tried pglite, it's very slow atm and the IPC times out when fetching the old DB state: rugvip/pglite

Leaning back towards this most likely being the better option unless we can find a way to re-use the same pglite instance across all plugins.

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