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

Postgres support #28

Merged

Conversation

morrislaptop
Copy link
Contributor

Hi,

I was tracking down #17 and discovered that multiple states for the same ID are being written to the database.

SQLite and MySQL don't seem to care, but Postgres throws an error. At the very least this will be a performance improvement in sending less data over the wire.

This fixes the issue, although the purpose of the PR is to just highlight the root cause of the same state going into the queue to be written.

Cheers,
Craig

@morrislaptop
Copy link
Contributor Author

Looks very related laravel/pulse#64

examples/Counter/tests/StateRehydrationTest.php Outdated Show resolved Hide resolved
tests/Pest.php Outdated Show resolved Hide resolved
tests/TestCase.php Outdated Show resolved Hide resolved
@morrislaptop morrislaptop changed the title [DO-NOT-MERGE] De-duplicate states going to the DB Postgres support Dec 6, 2023
@inxilpro
Copy link
Contributor

inxilpro commented Dec 7, 2023

Thank you for working on this! I'm going to get our automated tests fully running with MySQL and Postgres and then take a look. Any changes to the github actions in PRs won't take effect until merged, so it's easier to have Postgres tests running on main before looking at this.

@morrislaptop
Copy link
Contributor Author

No problems!

@inxilpro
Copy link
Contributor

inxilpro commented Dec 7, 2023

🎉

@inxilpro inxilpro merged commit 4e4cd78 into hirethunk:main Dec 7, 2023
17 checks passed
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