binary output from cache

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

binary output from cache

voipp
Guys, i have a dumb question. Why do we need to set withKeepBinary()? What
i mean is why dont we just have it hardcoded ?

--

*Best Regards,*

*Kuznetsov Aleksey*
Reply | Threaded
Open this post in threaded view
|

Re: binary output from cache

Valentin Kulichenko
Alexey,

Generally users want to work with their model objects, so we deserialize
them on read by default. BinaryObject API is usually used in more
complicated use cases, like when values are read on servers side, or when
it gives performance improvement.

-Val

On Thu, Feb 9, 2017 at 10:36 AM, ALEKSEY KUZNETSOV <[hidden email]
> wrote:

> Guys, i have a dumb question. Why do we need to set withKeepBinary()? What
> i mean is why dont we just have it hardcoded ?
>
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>
Reply | Threaded
Open this post in threaded view
|

Re: binary output from cache

voipp
How could it give perfomance improvement ?

чт, 9 февр. 2017 г. в 23:21, Valentin Kulichenko <
[hidden email]>:

> Alexey,
>
> Generally users want to work with their model objects, so we deserialize
> them on read by default. BinaryObject API is usually used in more
> complicated use cases, like when values are read on servers side, or when
> it gives performance improvement.
>
> -Val
>
> On Thu, Feb 9, 2017 at 10:36 AM, ALEKSEY KUZNETSOV <
> [hidden email]
> > wrote:
>
> > Guys, i have a dumb question. Why do we need to set withKeepBinary()?
> What
> > i mean is why dont we just have it hardcoded ?
> >
> > --
> >
> > *Best Regards,*
> >
> > *Kuznetsov Aleksey*
> >
>
--

*Best Regards,*

*Kuznetsov Aleksey*
Reply | Threaded
Open this post in threaded view
|

Re: binary output from cache

Alexey Goncharuk
Aleksey,

It can give a performance benefit for example if you access only a subset
of the fields of a large object. In this case, deserializing only required
fields is much faster than deserializing the whole object.

--AG

2017-02-10 10:26 GMT+03:00 ALEKSEY KUZNETSOV <[hidden email]>:

> How could it give perfomance improvement ?
>
> чт, 9 февр. 2017 г. в 23:21, Valentin Kulichenko <
> [hidden email]>:
>
> > Alexey,
> >
> > Generally users want to work with their model objects, so we deserialize
> > them on read by default. BinaryObject API is usually used in more
> > complicated use cases, like when values are read on servers side, or when
> > it gives performance improvement.
> >
> > -Val
> >
> > On Thu, Feb 9, 2017 at 10:36 AM, ALEKSEY KUZNETSOV <
> > [hidden email]
> > > wrote:
> >
> > > Guys, i have a dumb question. Why do we need to set withKeepBinary()?
> > What
> > > i mean is why dont we just have it hardcoded ?
> > >
> > > --
> > >
> > > *Best Regards,*
> > >
> > > *Kuznetsov Aleksey*
> > >
> >
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>
Reply | Threaded
Open this post in threaded view
|

Re: binary output from cache

voipp
thanks for explanation

пт, 10 Фев 2017 г., 20:12 Alexey Goncharuk <[hidden email]>:

> Aleksey,
>
> It can give a performance benefit for example if you access only a subset
> of the fields of a large object. In this case, deserializing only required
> fields is much faster than deserializing the whole object.
>
> --AG
>
> 2017-02-10 10:26 GMT+03:00 ALEKSEY KUZNETSOV <[hidden email]>:
>
> > How could it give perfomance improvement ?
> >
> > чт, 9 февр. 2017 г. в 23:21, Valentin Kulichenko <
> > [hidden email]>:
> >
> > > Alexey,
> > >
> > > Generally users want to work with their model objects, so we
> deserialize
> > > them on read by default. BinaryObject API is usually used in more
> > > complicated use cases, like when values are read on servers side, or
> when
> > > it gives performance improvement.
> > >
> > > -Val
> > >
> > > On Thu, Feb 9, 2017 at 10:36 AM, ALEKSEY KUZNETSOV <
> > > [hidden email]
> > > > wrote:
> > >
> > > > Guys, i have a dumb question. Why do we need to set withKeepBinary()?
> > > What
> > > > i mean is why dont we just have it hardcoded ?
> > > >
> > > > --
> > > >
> > > > *Best Regards,*
> > > >
> > > > *Kuznetsov Aleksey*
> > > >
> > >
> > --
> >
> > *Best Regards,*
> >
> > *Kuznetsov Aleksey*
> >
>
--

*Best Regards,*

*Kuznetsov Aleksey*