I made the changes to store cache items as byte[] instead of MemoryStream
which has reduced the overall storage requirement by around 30%, which is a
nice result 😊



Thanks!

Raymond.



*From:* Raymond Wilson [mailto:[email protected]]
*Sent:* Tuesday, October 17, 2017 12:22 AM
*To:* '[email protected]' <[email protected]>
*Subject:* RE: Error with ScanQuery



Hi Pavel,



Thanks for the tips on MemoryStream versus byte[]. I’ll look into it.



Thanks,

Raymond.





*From:* Pavel Tupitsyn [mailto:[email protected] <[email protected]>]
*Sent:* Monday, October 16, 2017 11:00 PM
*To:* [email protected]
*Subject:* Re: Error with ScanQuery



Hi Raymond,



1) Please attach full exception details, including all inner exceptions
(can be obtained with ex.ToString())



2) Storing MemoryStream in cache is not a very good idea: there is a lot of
unnecessary overhead

(underlying buffer is usually bigger that real data, there is some state,
etc).

Consider storing byte[] instead (call MemoryStream.ToArray()).



Thanks,

Pavel



On Mon, Oct 16, 2017 at 11:46 AM, Raymond Wilson <[email protected]>
wrote:

I can do that tomorrow.

In the meantime, can you speak to what that error means?

Thanks,
Raymond.

Sent from my iPhone


> On 16/10/2017, at 9:18 PM, dkarachentsev <[email protected]>
wrote:
>
> Hi Raymond,
>
> Could you please attach full log and config for failed node?
>
> Thanks!
> -Dmitry
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to