|Entradas de Blog Apresentadas|
Running Queries in a partitioned grid using Entity Manager API
lisaw 0600016B42 Visits (839)
This sample demonstrates use of queries in a distributed partitioned map, utilizing Constrained Tree Schemas (CTS) and applications (CTA) for extreme OLTP (XTP) concepts . eXtreme Scale is a highly scalable and partitionable grid . Generally, a key in an Object is mapped to a specific partition. This mapping can become complicated if the Objects have a relationship because they may not map to the same partition. Consider an example of two Objects, Customer and Order, with keys 1 and 2 respectively and a one-to-many relationship. It is possible that Customer is persisted in partition X and Order in partition Y. To ensure that both entities are co-located in the same partition, the Customer entity is identified as the root of the relationship (or schema). All entities related to the Customer entity are collocated in the same partition. Since all interactions with the Customer entity and its related entities are bound within a single partition (process), operations such as adding new orders and querying orders for the customer are very fast and scalable.
This sample demonstrates the EntityManager Query API .
To install the sample follow these steps:
The <ObjectGrid> directory is the directory where the eXtreme Scale trial was extracted, or the ObjectGrid directory within a WebSphere eXtreme Scale product install.
Running the sample
Please post any feedback on this sample as a comment on this page.