I tried like this as well
var view = _database.CreateAllDocumentsQuery();
var docs = view.Run().Select(x => new DatabaseUtils.
CacheData
{
DescrName = (string) x.Document.Properties["name"],
Date = Convert.ToInt32(x.Document.Properties["date"]),
DescriptionType = Convert.ToInt32(x.Document.Properties[
"type"]),
Version = (string) x.Document.Properties["version"]
});
_iterator = docs.GetEnumerator();
This is also soo dead slow. Please help :(
On Monday, 1 September 2014 14:03:02 UTC+5:30, Sherry Ummen wrote:
>
> Hi,
>
> In our software we have it so that we provide user a list of all
> documents present in the database. We also have something like object
> browser where we have a file open dialog which shows a list all the
> documents present in the database and when user select it then the document
> is read from the database.
>
> For this scenario I would want to get the list of all documents with
> certian properties of it.
>
> I have tried view. But for the first time it was soo dead slow. And I have
> this experience that view remain stale sometimes. So could some one tell
> better efficient way to do this?
>
>
> -Sherry
>
--
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/18cbb6dc-4334-477e-8833-8c78b61e199c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.