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

stack level too deep when using model.reload #61

Open
alexwebgr opened this issue Feb 21, 2024 · 2 comments
Open

stack level too deep when using model.reload #61

alexwebgr opened this issue Feb 21, 2024 · 2 comments

Comments

@alexwebgr
Copy link

This is definitely a true gem came in with hopes to solve all my db related performance issues but unfortunately i started getting an annoying error first in our test suites but also in the application code as well :(
i think it happens when .reload is used

expect(inventory.reload.status.value).to eq "accepted"

stack level too deep

i have set

class ApplicationRecord < ActiveRecord::Base
  JitPreloader.globally_enabled = false

  ...
end

but it still fails

i am only using in the controller that has nothing to do with that test

any help would be greatly appreciated!

@doliveirakn
Copy link
Contributor

@alexwebgr Do you have a stack trace of the methods it is hitting inside the Jit preloader?

@alexwebgr
Copy link
Author

i am afraid not :( what would be the best way to get a stack trace?

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

2 participants