> On Feb 4, 2015, at 9:30 PM, Vinay Bhinde <[email protected]> wrote: > > But in that case when i need to get all these 100 docs i will have to first > query my view which gives me 100 document id's and then i need to fire 100 > ajax GET requests to get the complete doc itself. Hence the use of doc in > emit of view.
You can add "?include_docs=true" to the query request and it will include the doc body in each row. > I profiled the app by watching the android logcat logs to find what happens > when i query the view for the first time. All it shows is that there is > re-indexing of views going on and as there are 100 docs it goes and > re-indexes them and that process takes about 5~6 secs. The platform is > Android (4.4.4). Also i use this on iOS too and time taken on iOS is little > bit less then android. I don't understand why it's so slow. I'm actually doing benchmarking and optimization on iOS right now, so I have numbers handy. CBL 1.0.3 on my iPhone 6 indexes about 1500 documents per second. (These are docs taken from my iTunes library metadata, they have about as many properties as yours do.) The speed you're quoting is about two orders of magnitude slower! The only difference is Objective-C vs JavaScript for the map function itself, and JS will definitely be slower but it shouldn't be that much slower. I also don't think other PhoneGap developers have run into this in their apps. —Jens -- 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/CA303C35-39B8-4714-98DD-C21BDC720068%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
