On Wednesday, September 4, 2013, Dishara Wijewardana wrote: > On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston <i...@tfd.co.uk <javascript:;>> > wrote: > > > Hi, > > That sounds excellent, well done. > > > > Next steps, > > test it with curl eg: > > > > curl -Ftestproperty=testvalue > > http://admin:admin@localhost:8080/cassandra/F/23423424 > > > > and then check that the value was persisted with > > > > curl http://admin:admin@localhost:8080/cassandra/F/23423424.json > > > > Then check update is good with > > > > curl -Ftestproperty=updatedvalue > > http://admin:admin@localhost:8080/cassandra/F/23423424 > > > > > And if that checks out ok, > > Hi Ian > Yes it worked as expected :-). Lucky I didn't went in to any trouble this > time. It just worked.
Great, good work. > > > > then adapt your load test to first create > > 10,100,1000,10000, etc child resources in new sub folders, and run the > > tests to get some statistics. > > > > Done. Commited the changes. Now it load collections through > CassandraResourceProvider API. No more manually column family creations and > etc prior to add data. > > Ran the integration test again and it has not much difference than earlier > and hence I did not post the results. It makes sense, because I did nothing > related to improve the READ behavior. Great. Can you add a performance test here as well. How long does it take to add, update and delete, 100 new items to the existing collections that you used for the read tests. If its quick, you may need to make that 1000 new items. Best regards Ian > > > > Best Regards > > Ian > > > > On 3 September 2013 01:23, Dishara Wijewardana > > <ddwijeward...@gmail.com<javascript:;> > > > > wrote: > > > Hi Ian, > > > Thank you for the references. I just commited the changes. There I have > > > completed the whole implementation of ModifyingResourceProvider > interface > > > for Cassandra Resource Provider (create, delete, commit , rollback > etc) > > > and wrote 3 test classes ( CassandraModifyResourceProvide**rAddTest, > > Cassan > > > draModifyResourceProvide**rDeleteTest ,CassandraModifyResourceProvide** > > > rRevertTest) which covers all. With my local cql command prompt, I > > manually > > > verified that commit and revert properly works. > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > On Fri, Aug 30, 2013 at 12:57 PM, Ian Boston > > > <i...@tfd.co.uk<javascript:;>> > wrote: > > > > > >> Hi, > > >> Have a look at org.apache.sling.api.resource.ModifyingResourceProvider > > >> > > >> The CassandraResourceProvider now needs to implement > > >> ModifyingResourceProvider which extends ResourceProvider adding create > > >> update and delete methods. > > >> > > >> Don't assume assume that the resource you are given in these methods > > >> is a CassandraResource, it could be the parent of the Cassandra > > >> resource tree. > > >> > > >> If you need an example to follow, have a look at [1]. > > >> > > >> Best Regards > > >> Ian > > >> > > >> 1 > > >> > > > contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourceProvider.java > > >> > > >> On 30 August 2013 00:22, Dishara Wijewardana > > >> <ddwijeward...@gmail.com<javascript:;> > > > > >> wrote: > > >> > Hi, > > >> > This is to track down $subject. Can you provide some guidance on > how > > to > > >> do > > >> > this. ResourceProvider is only for providing. Who is responsible for > > >> create > > >> > and update resources ? Any reference to follow ? > > >> > > > >> > -- > > >> > Thanks > > >> > /Dishara > > >> > > > > > > > > > > > > -- > > > Thanks > > > /Dishara > > > > > > -- > Thanks > /Dishara >