ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: How to load cache when reading data from txt files
Date Tue, 29 Mar 2016 22:58:03 GMT
Hi,

Can you please try a different email to subscribe?

For information on how to load the cache from a persistence store please
refer to this page: https://apacheignite.readme.io/docs/data-loading

You have two options:
1. Start a client node, create IgniteDataStreamer and use it to load the
data. Simply call addData() for each line in the file.
2. Implement CacheStore.loadCache() method, provide the implementation in
the cache configuration and call IgniteCache.loadCache().

Second approach will require to have the file on all server nodes, by there
will be no communication between nodes, so most likely it will be faster.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-load-cache-when-reading-data-from-txt-files-tp3747p3751.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message