Skip to content

Fix: Postgres sync not working #121

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

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

Conversation

mavcook
Copy link

@mavcook mavcook commented Feb 5, 2025

Fixes #120, where postgres wasn't syncing. Disappointingly/embarrassingly, I don't fundamentally understand what the problem was or why the solution works, so I don't have much to say (except "thanks Claude," and I hope it doesn't cause other issues).

I added in some debug logs that I think are helpful, but I can remove them if desired.

@gamingflexer
Copy link

@mavcook Does it work, i need to shift the whole pipeline bcz of no fixes on this issues

Please confirm? thanks

@mavcook
Copy link
Author

mavcook commented Feb 17, 2025

@mavcook Does it work, i need to shift the whole pipeline bcz of no fixes on this issues

Please confirm? thanks

Yes, at least for a basic setup (small, single postgres database) the syncing issue is fixed and no apparent regressions are introduced. You can try it out yourself with this image from docker hub that includes the fix.

@gamingflexer
Copy link

This branch also crashes

image

@mavcook
Copy link
Author

mavcook commented Mar 6, 2025

I can't really tell what the error is from the screenshot, but this PR fixes a problem where no logs would appear because syncing was not happening. So it is possible that this PR caused a new error that you're seeing, but it seems unlikely, especially if you were seeing that error with other branches.

I would recommend creating a new Github Issue with clear steps on how to reproduce the problem. That way you can get better help, and this PR can stay focused for the maintainer's review. If you create a Github Issue, I can take a look at it too.

@gamingflexer
Copy link

I can't really tell what the error is from the screenshot, but this PR fixes a problem where no logs would appear because syncing was not happening. So it is possible that this PR caused a new error that you're seeing, but it seems unlikely, especially if you were seeing that error with other branches.

I would recommend creating a new Github Issue with clear steps on how to reproduce the problem. That way you can get better help, and this PR can stay focused for the maintainer's review. If you create a Github Issue, I can take a look at it too.

Yup will check, thanks for the update

@Skillkiller

This comment was marked as off-topic.

@Skillkiller
Copy link

Oh, I was probably too quick. After 5 minutes there was a timeout error.

@mavcook
Copy link
Author

mavcook commented Mar 7, 2025

@Skillkiller just to confirm, did you determine if you were hitting an unrelated timeout issue?
I haven't observed any issues with deletions, but my testing has been very limited. I have only tested postgres:15 + meilisearch:1.10 with relatively small syncs (probably only 10 rows across 3 or so tables per minute).

@Skillkiller
Copy link

Unfortunately, I cannot say whether this is due to the change in this PR or a general problem. Since I have not been able to successfully sync with the original code.
However, I do not currently assume that my error has anything to do with this PR.

@joebnb
Copy link

joebnb commented Mar 15, 2025

will some one merge this?

Aditeya added a commit to dodopayments/dodomeilisync that referenced this pull request May 6, 2025
@lapaii lapaii mentioned this pull request May 16, 2025
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.

Postgres: Sync not working at all
4 participants