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

Support prepared statements / statement cache when loading array associations #102

Open
DanielHeath opened this issue Dec 4, 2024 · 1 comment

Comments

@DanielHeath
Copy link

I've figured out the bug which was preventing the statement cache being used with array associations.

Unfortunately, I'm unlikely to get around to opening a PR for it in the near future.

My fork is very different (I've stripped out parts of the library I'm not using, to reduce the chance of conflicts with core rails), but cb76495 over on https://github.com/radiopaedia/torque-postgresql/tree/just_has_one should point you in the right direction.

@DanielHeath
Copy link
Author

Looks like there's still an issue where it'll sometimes create too many bind params, actually - possibly not as useful as I'd hoped.

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