[Mondrian] Refactor to change Member[] by List<Member>

Luis F. Canals luis.canals at stratebi.com
Tue Nov 13 07:47:00 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

After taking a look at SqlMemberSource, we have discovered that all
elementes from a ResultSet from a JDBC query are loading into memory
and stored into an array of Member objects....
As we are wanting to deal with very very very big dimensions, the
first thing we need is not to overload the memory, so we are thinking
of changing the type returned  by SqlMemberSource.getMembers from a
Member[] to a List<Member> to be able to change it, in future, to a
more intelligent List supported by an Iterator which takes elements
from ResultSet non demand.

Yes, we know this is going to move us to change a lot elements into
code, but using a List or an Iterator instead of an array of Members
is, in almost all places, a better approach.

We would like to know your oppinions and suggestions.

Thanks,

- - luis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOZzE6XofO2yaIbARApbPAJ0f4dbli9vzTftsVWJuqxOvNp9GuwCZARMw
UmY7KnZ6eKTLUk9UEzoVXMM=
=Wik4
-----END PGP SIGNATURE-----




More information about the Mondrian mailing list