neo4j-core icon indicating copy to clipboard operation
neo4j-core copied to clipboard

Make Neo4j::Session.current thread-safe

Open cheerfulstoic opened this issue 8 years ago • 4 comments

I think that this would be pretty easy. See: http://stackoverflow.com/questions/34233349/reconnect-neo4jrb-connections-after-puma-fork-with-preload-app/34281962#34281962

cheerfulstoic avatar Dec 15 '15 06:12 cheerfulstoic

Done (at least I hope so)

cheerfulstoic avatar Dec 20 '15 14:12 cheerfulstoic

Not done ;( I think if a thread is made the session from the original thread should be used. Don't have time to look at the moment, so I reverted my other commit

cheerfulstoic avatar Dec 22 '15 03:12 cheerfulstoic

In my initial tests, moving to Typhoeus (https://github.com/neo4jrb/neo4j-core/issues/272) seems to have solved my issues with puma and preload_app! as well.

brucek avatar Nov 16 '16 13:11 brucek

Nice! I actually was doing some stuff with the parallel gem ad threads and so I should try this (if we don't make it the default) the next time I do thread stuff

cheerfulstoic avatar Nov 17 '16 03:11 cheerfulstoic