I would like to take two CBLQuery objects and find out if they represent the same query on a view. I can compare the parameters that are important to me (startKey, endKey, groupLevel, mapOnly), but I can't check that the two queries actually reference the same view, since I see no way to find out what view created a query from the query object.
Is there a better way for me to compare two queries that have been created with separate calls to [myView createQuery]? Can I get the name of the view that created a CBLQuery? I am using this to update a set of CBLLiveQuery objects that my app keeps.