You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fridgerator No. It just releases the existing connection to prevent leaking. crystal-db raises exception, and handling it should be done outside of crystal-db.
Crecto would handle the exception (re-open connection when this kind of exception caught),
or let users handle it. (need to expose access method to db connection instance)
In crystal-db, prepared statements are only closed when the connection is closed.
When it reach the max value, it raises exception
crystal-lang/crystal-db#60
It is recommended that close the connection and open the new one.
Do you have idea to solve this issue?
Currently I exposed
Repo::Config
and close/open new connection manually in the loop which inserts millions of rows.The text was updated successfully, but these errors were encountered: