Hi Vinay,

Thank you very much for investigating CBL PhoneGap Plugin for Android with 
ToDo Lite Sample.

Current official build of CBL PhoneGap Plugin contains CBL Android v1.0.4. 
CBL Android v1.0.4 or earlier version has bottleneck for 
View.updateIndex(). One of root causes is our customer collator 
implementation for CBL Android/Java. By fixing the ticket of 
https://github.com/couchbase/couchbase-lite-java-core/issues/502, master 
branch version of CBL Android improved View.updateIndex() significantly. 
 If you have time, please try master branch version of CBL PhoneGap Plugin 
for Android?

Download link:
http://cbfs-ext.hq.couchbase.com/builds/Couchbase-Lite-PhoneGap-Plugin_1.0.4-47-63.zip

How to update plugin:
```
phonegap plugin rm com.couchbase.lite.phonegap
phonegap plugin add ~/Downloads/Couchbase-Lite-PhoneGap-Plugin_1.0.4-47-63
phonegap platform rm android
phonegap platform add android
phonegap run android
phonegap run android --verbose
```

There is open ticket for CBL PhoneGap Plugin for Android View.updateIndex() 
performance 
issue. https://github.com/couchbase/couchbase-lite-java-core/issues/478

Thanks!
Hideki


On Thursday, April 23, 2015 at 5:41:04 AM UTC-7, Vinay Bhinde wrote:
>
> Hello,
>
> I have some more data and hence i decided to post it here and take the 
> discussion forward.
>
> What i did was that i downloaded the Todo - Couchbase Lite Phonegap 
> example from Github and modified its code a little bit. I simple entered 
> 150 docs in cblite and then by using one of the  default view that is 
> provided in it i query it and it takes around 7 seconds on MOTO E running 
> android 4.4.4. This is just a simple test case to show that it is taking 
> very long to index just 150 docs. Subsequent calls to the view are very 
> fast and the time is in milliseconds. But again if there are more additions 
> to the db and new docs are added then again indexing takes 7 seconds. I 
> hope you guys can reproduce the issue with Todo Lite example.
>
> Other query
> The other query that i have is that in couchbase server whenever a query 
> is made to a view in a design document then all the views in that design 
> document are indexed. This same behavior is not replicated in CBLITE. Each 
> view is updated only when a query is made to that view explicitly.
>
> Due to this the response times for ajax calls to cblite from my hybrid app 
> take too long and they render the app useless. Same thing runs lightning 
> fast in iOS and i can understand objective c is faster. But the view 
> indexing simply takes too much time to get the data.
>
>  Any pointers ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3a207156-2fb0-472e-b145-d26d71b10a3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to