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

Saved record is not present after saving #605

Open
robbiemoore opened this issue Sep 6, 2024 · 0 comments
Open

Saved record is not present after saving #605

robbiemoore opened this issue Sep 6, 2024 · 0 comments

Comments

@robbiemoore
Copy link

I've been debugging an issue around creating a parent, and then creating the child node.

The issue has been that I get a No query results for model [App\Models\ExampleModel] 957092 when I try to save the child node (this is the parent not existing). It turns out that after I create and save the parent, that the parent does not immediately exist (a simple select query cannot retrieve it). If I then wait until the record can be found (a few seconds) and then continue, it works fine.

We now have large trees (even after scoping them). Could there be something going on where it is slow to calculate the lft and rgt fields, and performInsert is completed before the row actually has been inserted?

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

No branches or pull requests

1 participant