Re: limit of objects for in-memory filter?

From: Eric Schneider (eric.j.schneide..mail.com)
Date: Fri Dec 02 2005 - 15:10:54 EST

  • Next message: Andrus Adamchik: "Re: limit of objects for in-memory filter?"

    Sure,

    Expression qual = _playerExpressionForPlayer(player);
    qual = qual.andExp(ExpressionFactory.matchDbExp(PlayerStats.GAMETYPE_PK_COLUMN,
    gameType));

    List results = new ArrayList(_cachedPlayerStats);
    results = qual.filterObjects(results);

    ...

    private Expression _playerExpressionForPlayer(Player player) {
      Expression qual =
    ExpressionFactory.matchDbExp(PlayerStats.PLAYERID_PK_COLUMN,
    player.getPlayerId());
      return qual;
    }

    Sorry, if that's formatted horribly.

    Thanks,
    e.

    On 12/2/05, Cris Daniluk <cris.danilu..mail.com> wrote:
    > I've personally run it with close to that number of objects and not
    > had a problem... but there are limitations as to what the in-memory
    > filtering can do. Can you paste an example of the expression that
    > works via query, but not in-memory?
    >
    > Cris
    >
    > On 12/2/05, Eric Schneider <eric.j.schneide..mail.com> wrote:
    > > Hi,
    > >
    > > Does anyone know if there is some sort of limit on how large a list
    > > can be to perform an in-memorty filter? I have a rather large list
    > > (~9500 objects). My call to qual.filterObjects(results) always
    > > returns 0. The expression works fine with a regular query.
    > >
    > > Any ideas?
    > >
    > > Thanks,
    > > Eric
    > >
    >



    This archive was generated by hypermail 2.0.0 : Fri Dec 02 2005 - 15:10:56 EST