[akka-user] How to load dataase records into ram by akka and java

2017-05-24 Thread morteza Davodi
I want load million records from oracle DB onto ram fast as a possible, my current solution is very slow, i use pure jdbc code with single thread, read record per record and store on memcached, i want use akka as a in-memory database and in-memory computation. before i dirty my hands with code,

Re: [akka-user] How to load dataase records into ram by akka and java

2017-05-24 Thread Konrad Malawski
You'll still of course use some jdbc driver to pull the data out. You can use Slick to get a Reactive Stream which you can easily consume using Akka Streams: Source.fromPublisher(db.stream(strm.result)) which you could then use mapAsync or other operators on to make it process more at the same ti