Hello,
What are the patterns for using Sparksee in a mutithreaded application? I have multiple threads performing heavy computation on my data. Every threads, as the result of computation will update the graph by adding new Nodes and/or edges.
How can I make use of sparksee in this scenario. What I have tried always resulted with error 10 or 6 which you said is related to not closing the database.
What I do right now is:
APP INIT :
CREATE SINGLETON WRAPPER for SPARKSEE client
inside:
> create DB if not exists of open
> get one session and retrieve existing types
> if types don't exist create them
> close session
PER THREAD
computation...
>get one session from singleton
>add/remove/query nodes edges
>close the session
carry on with computation
sessions once created become part of a threadpool and are being reused by the same thread which created it.
What am I doing wrong ?