Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CREFaulk opened this issue Oct 31, 2023 · 3 comments
Labels
Source: Community Originated from the Community. Type: Question Issue is a Question or a Discussion.

Comments

@CREFaulk
Copy link

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 emreyigit added Source: Community Originated from the Community. Type: Question Issue is a Question or a Discussion. labels Nov 1, 2023
@emreyigit
Copy link
Collaborator

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
Copy link
Author

CREFaulk commented Nov 1, 2023

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

@emreyigit
Copy link
Collaborator

No problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Community Originated from the Community. Type: Question Issue is a Question or a Discussion.
Projects
None yet
Development

No branches or pull requests

2 participants