ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: Sorting fields of Binarilyzable objects on write
Date Wed, 12 Apr 2017 06:02:19 GMT
QueryEntity order is not only harder for the users, it will be nightmare to
What if there is no QueryEntity defined? What if the same class is used in
multiple QueryEntity?
I don't think serialization code has to be tied to QueryEntity in any way,
this violates separation of concerns.

So I guess we can agree on sorting fields alphabetically.

Let's get to the initial question:
* Should we do the sorting for the user (performance hit)?
* Should we at least validate user-defined order?

On Wed, Apr 12, 2017 at 2:12 AM, Dmitriy Setrakyan <dsetrakyan@apache.org>

> On Tue, Apr 11, 2017 at 1:28 PM, Sergi Vladykin <sergi.vladykin@gmail.com>
> wrote:
> > I'm just trying to understand the current state of things and risks. May
> be
> > we need to do some adjustments here before 2.0 to be on the safe side.
> >
> > Actually looks like this not really important, we just have to clearly
> > document that DML builds keys this way and require from user to do the
> same
> > to be able to use cache API.
> >
> I think it is important from the usability stand point. A user can always
> sort fields alphabetically in his or her mind. However, trying to remember
> the field order from some QueryEntity is a lot harder.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message