[hibernate-issues] [Hibernate-JIRA] Created: (OGM-151) Reduce memory consumption by sharing the metadata information of Key objects

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Apr 5 12:49:48 EDT 2012


Reduce memory consumption by sharing the metadata information of Key objects
----------------------------------------------------------------------------

                 Key: OGM-151
                 URL: https://hibernate.onjira.com/browse/OGM-151
             Project: Hibernate OGM
          Issue Type: Improvement
          Components: core
            Reporter: Emmanuel Bernard


Today EntityKey, AssociationKey, RowKey are composed of a metadata part (table name and column names) and a data part (column values).
Besides, AssociationKey also embeds collection role and owner's EntityKey.

We could have a model where Key object receive a KeyMetadata object whose instances is shared and kept in Persister/Loader. This will reduce memory consumption.

We can in addition consider putting non identifier metadata in a separate object (collection role and entity key owner information) and pass this object to the GridDialect. This object could even be specialized per datastore based on specific metadata hosted on entity / associations.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list