hazelcast / hazelcast-csharp-client

Hazelcast .NET Client
https://hazelcast.com/clients/dotnet/
Apache License 2.0
102 stars 49 forks source link

Question: Setting In-Memory-Format for a map different than the cluster default possible? #858

Closed CREFaulk closed 1 year ago

CREFaulk commented 1 year ago

I don't even see MapConfig defined in the c# client repository and haven't been able to figure out any way to create a new map with settings different than the cluster default map. Is this possible with the c# client? If so, how?

Are NearCache options just for the client to find the appropriate cluster(s)? I tried it anyway and that didn't change anything.

In my case, the clusters here are all BINARY and I need to create maps which are OBJECT formatted for faster querying. Do new clusters need to be created for the specific format?

Thanks!

emreyigit commented 1 year ago

You can't neither configure a map nor other things in the cluster from C# client . And, yes. Near cache config is for the client since near cache doesn't relate with cluster. It's a client side feature.

Also, you don't have to be worry about format. If your object type is a complex one then I suggest you to use compact serialization so that you can benefit from partial deserialization during querying. But of course, best thing to do benchmarking the options with your use case.

Here is the examples for reference: https://github.com/hazelcast/hazelcast-csharp-client/tree/master/src/Hazelcast.Net.Examples

CREFaulk commented 1 year ago

Ok, thanks. I just wanted to make sure I hadn't missed something. I'll look into compact serialization.

emreyigit commented 1 year ago

No problem.