On Mar 6, 2008, at 9:31 PM, Natalia Shilenkova wrote:
Recently I had to work on some code that would require to add unique resources to Xindice database. Currently, collections can only "store" resources, which will add new resource if the key does not exist in the collection and will overwrite the resource with new data if key already exists. What I needed instead was a way to "insert" or "update" resource, where collection would get updated only if resource with that key does not exist in case of insert or does exist in case of update. Since Xindice does not support transactions or constraints, I ended up creating new service that would allow user to insert/update resources. Are there any objections to adding this functionality to trunk?
Makes sense to me. What service do you propose to add? Care to describe the interface?
Vadim