Store raw binary value in Apache Ignite through thin python client
This post was updated on .
I'm trying to save some raw binary data into Apache Ignite using thin Python
client and the process is very slow (actually it looks like it depends on
the size of the data).
For my simple test case I've started locally Ignite with single node
(version 2.7.0 without any specific configuration):
Also, I have a binary file with the content I want to store in Ignite. The
size if around 6MB. Here is my source code:
with open("/var/bin_text.bin", mode='rb') as file:
file_content = file.read()
client = Client()
my_cache = client.get_or_create_cache('my cache')
After my_cache.put the process just freezes. I haven't even managed to
wait till the end (I've terminated it after 2 minutes).
However, passing the file content transformed into a string works very fast
What I'm missing?
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Store raw binary value in Apache Ignite through thin python client
I think the issue is related to building bytes counterpart of
an array during serialization using += operation on bytes object
which is immutable. This leads to throwing away previously
created bytes instances, each of which grows at new iteration.
This aligns with what I observe when run the test provided