I ran the view/query log functions for both the older version and newer
updates in the CBL framework. I have changed nothing in the code other than
dropping in the new compiled version of the framework.
*New results: *(returning 0 rows)
[ AppDelegate (0x7d1196e0)]:
application:didFinishLaunchingWithOptions:
[ SCTableViewController (0x79f3e820)]: viewDidLoad
08:28:51.953| View: Checking indexes of (SCPView)
08:28:51.954| View: Query SCPView SELECT key, value, docid, revs.sequence
FROM maps, revs, docs WHERE maps.view_id=? AND revs.sequence =
maps.sequence AND docs.doc_id = revs.doc_id ORDER BY key DESC, docid DESC
LIMIT ? OFFSET ?
Arguments: (
"-1",
"-1",
0
)
08:28:51.955| View: Query SCPView: Returning 0 rows
*Old Results: (returning 3 rows - CORRECT)*
[ AppDelegate (0x7b53b100)]:
application:didFinishLaunchingWithOptions:
[ SCPatientTableViewController (0x7b33cd20)]: viewDidLoad
08:23:54.768| View: Re-indexing view SCPView ...
08:23:54.770| View: Query SCPView SELECT key, value, docid, revs.sequence
FROM maps, revs, docs WHERE maps.view_id=? AND revs.sequence =
maps.sequence AND docs.doc_id = revs.doc_id ORDER BY key DESC, docid DESC
LIMIT ? OFFSET ?
Arguments: (
1,
"-1",
0
)
08:23:54.771| View: Query SCPView: Returning 3 rows
On Friday, July 18, 2014 4:13:44 PM UTC-7, Jens Alfke wrote:
>
>
> On Jul 17, 2014, at 3:00 PM, Ragu Vijaykumar <[email protected]
> <javascript:>> wrote:
>
> I also have another tableview which I manually run a CBLQuery* to populate
> (not a CBLLiveQuery), and it too has issues where on the initial load, it
> doesn't think there are any rows. How do you think I should go about
> adjusting my code to work with your new changes?
>
>
> You shouldn’t — I will need to fix my new changes to be compatible with
> your code.
>
> Could you please turn on logging for “View” and “Query”, and post the logs
> that are output when you index and query the view?
>
> —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/89e3b46e-1900-42dc-96f9-dd500d2797fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.