1.3. Upgrading from JBoss Data Grid 6.4.x to 6.5
1.3.1. Optimizations to the getAll() and putAll() methods Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The following methods were introduced in Red Hat JBoss Data Grid 6.5 for the
AdvancedCache and RemoteCache interfaces, and both of these methods have performance increases when sets of data are placed or retrieved versus the similar operations performed sequentially. This allows bulk large sets of data to be retrieved and placed more efficiently. This difference is especially significant in server-client mode and as the number of transferred items increase; however, there is additional memory overhead during the transfer itself as the full set must be loaded into memory.
getAll(Set<? extends K> keys)- Returns a
Mapcontaining the values associated with the set of keys requested. putAll(Map<? extends K, ? extends V> map)- Copies all of the mapping from the specified
Mapto the cache where the operation was performed.
Overloaded versions of these methods exist; documentation on these methods may be found in the Red Hat JBoss Data Grid API Documentation.
1.3.2. Migration tool for JDBC cache store from JDG 6.1 and older versions Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
A migration tool has been created which converts the data stored in a JDBC store by Red Hat JBoss Data Grid versions 6.0 and 6.1, which used Infinispan 5.2.x, into the format used by versions 6.2 and later, which use Infinispan 6.x.
This tool will function for all JDBC store types:
stringmixedbinary
If any custom marshallers were used these need to be provided on the classpath when the tool is executed, for instance:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
java -cp infinispan-jdbc-migrator52x.jar:mycustommarshaller.jar org.infinispan.persistence.migrator.jdbc.JdbcUpgradeTool [property file]
java -cp infinispan-jdbc-migrator52x.jar:mycustommarshaller.jar org.infinispan.persistence.migrator.jdbc.JdbcUpgradeTool [property file]
For full usage information view the
README.txt included, as it contains the necessary information for the required properties file along with example commands.
Important
This tool is required only if upgrading from JBoss Data Grid 6.1 or older version. In addition, this tool must be run offline, while neither Red Hat JBoss Data Grid or any other application access the tables.