[hibernate-issues] [Hibernate-JIRA] Created: (HSHARDS-57) For a better "virtual shards" support!

Colbert Philippe (JIRA) noreply at atlassian.com
Mon Feb 23 13:39:38 EST 2009


For a better "virtual shards" support!
--------------------------------------

                 Key: HSHARDS-57
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-57
             Project: Hibernate Shards
          Issue Type: Improvement
    Affects Versions: 3.0.0.Beta2
         Environment: Windows XP
            Reporter: Colbert Philippe
            Assignee: Max Ross


The current implementation of virtual shards leaves a lot to be desired when used in big corporate applications.

A better way to model shards, is to identify a virtual shard by a pairing of "some name" + "an index" (example: Clients, 11).  The name plays a role similar to namespaces.   The index is always zero based and valid only within the namespace.   There can be many shard namespaces with unique names.  A configuration file (possibly XML) will map each virtual shard to a single physical shard.   It's a simple mapping strategy.   The mapping can allow overlaps of virtual shards into a single physical shard.   This type of naming can make things more clear and easier to manage on the long-run.

The big advantage to virtual shards over physical shards is that virtual shards can be easily persisted to file or database and retrieved again and still remain valid.  Any change to the shard structure is fully controlled by the shard configuration file, without modifications to the persisted representation of the shard.  This way the code can evolve separately from the physical shard architecture.

With this kind of virtual shard, top-of-tree classes will map to a single shard namespace.   The object will reside in any of the virtual shard indexes associated with the shard namespace.  The resolution strategy becomes very simple because the set of shard indexes will be returned.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list