This is more about a modelling question and here is what I want to achieve.
I’ve a Database named “DB100” and have entities “TABLE-1” and “TABLE-2”. Both entities are holding thousands of records and records will be added on a daily basis. The user should also be executing join queries on both tables , for e.g. “select a.Id, b.Name from TABLE-1 a JOIN TABLE-2 b where a.Id = b.Id” . What could be the best modelling approach for this requirement in Ignite?
Is the below approach good and possible? Or please share if there is any better way.
var cache = ignite.GetOrCreateCache<string, int>("DB100");
cache[“TABLE-1”] = EntityCollection-1;
cache[“TABLE-2”] = EntityCollection-2;
var sqlp = new SqlFieldsQuery("select a.Id, b.Name from TABLE-1 a JOIN TABLE-2 b where a.Id = b.Id");
using (var cursor = cache.Query(sqlp))
{
foreach (var row in cursor) // throws exception
{
}
}
If possible, we would like to append the entity collection on daily basis remotely without fetching entire collection to the client side. For this, we’ve tried with Entry Processor but resulted in error possibly due to a mismatch in server and client. Our client code (thick) in C# and server nodes are in C++. Please share any idea, thanks in advance.