I'm playing around with the ServiceStores that will be officially introduced in Dojo 1.2.
On one of my pages I have multiple service stores - however, the current implementation uses a common _index for a client side cache. As a result, I have some of my values being overwritten as I am using auto-increment database ids.
The culprit is the _index: {}, on line 186 of ServiceStore.js. If i comment this out and place a this._index = {} in the constructor function it changes the scope of the cache to each individual object store. However, I am not sure if the static _index is a bug or a feature. I'm thinking that it may be required to perform the lazy loading of objects across data-stores, but I'm not sure.
I'd appreciate if someone could clear this up for me, and suggest a workaround if this behavior is intentional.
Thanks!

I think this is a bug, thank
I think this is a bug, thank you for catching it. I just checked in your fix right now. The JsonRestStore is actually designed for lazy-loading that spans stores, but I don't think that ServiceStore has the appropriate infrastructure for cross-store referencing.
Thanks for rolling out a fix
Thanks for rolling out a fix so quickly kzyp!