Hi Gerke, > I am happy to assist with this, but do not have a great amount of time available in the coming weeks.
That's fine. I just needed to get in touch. To summarise the situation I'm in, our company is developing a new product that requires sharding capabilities. We are already experienced in using NHibernate so have naturally adopted NHibernate (3.3 branch) for our new project. We've looked at adding a sharding wrapper around NHibernate as really all we need is to seperate data by tenant; i.e. each shard will contain the whole set of data for a tenant. Shared data could either exist in each DB or in a single control DB (this is TBC). This isn't that difficult but in our prototype we end up with one session factory per shard (plus some other complexities) that has implications for startup time, HiLo based Id generators, and 2nd level caching for shared data across all shards. We also can't pull data in across all shards but this is an edge case for us. So we then looked again at NHibernate Shards. It seems to handle HiLo by the use of a single "control" shard but I *think* it uses seperate session factories for each shard, hence it would be a 2nd level cache per shard. However, it's better starting point than rolling our own sharding mechanism so, as a company, we are considering contributing to this to add in the extra functionality. I just need to get a better idea of the work involved so I can cost this internally and then make a decision. Do have an idea of the amount of changes needed to NHibernate core? I know that the team there are quite busy and Oskar has already commented that accepting pull requests is slow due to the time needed to evaluate them. If we need to contribute to NHibernate core too, then so be it, but this would mean that I'd need to speak to the core team to see how we can help speed up accepting pull requests and/or getting NH4.0 out of alpha. Obviously we don't have unlimited budget :) Finally, are you now an admin on the github project? This appears to still be under dario's account so should this be ported to NH contrib? ... or.... even NH core itself :) Thanks for your time so far. -- --- You received this message because you are subscribed to the Google Groups "nhibernate-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
