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 time. But it'd be the same query.. Or you can use the cluster to fire off multiple queries for a given range of IDs and thus spreading the loading across the nodes. Actually, the exact same thing will just work with multiple actors that would query for a range and populate it thanks to that in parallel. -- Konrad `ktoso` Malawski Akka <http://akka.io> @ Lightbend <http://lightbend.com> On 24 May 2017 at 14:22:53, morteza Davodi ([email protected]) wrote: 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, i want know available akka's solutions for loading oracle records on ram instead a traditional jdbc solution. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
