Hi.
Use Xamarin Android and Couchbase.Lite.Net (C#).
I have a database (Couchbase Lite .Net) 14,000 documents.
I created a view that returns 152 documents.
I would like to ask how best to work with the result of this query?
After running the query and the QueryEnumerator be with the 152 lines, I'm 
taking 30 seconds to retrieve the data.
Someone can look where I am going wrong?



 var vw = database.GetExistingView (tpTitulo);
             qry = vw.CreateQuery ();
             qry.IndexUpdateMode = IndexUpdateMode.Never;
             lines = qry.Run ();





*From here it takes 30 seconds!* 
            foreach (var line in lines) {
                 var telefone = (JArray)line.Document.GetProperty ("fone");
                 objListaTelefonica.Add (new Cadastro () {
                     Nome = line.Document.GetProperty ("nome").ToString (),
                     Razao = line.Document.GetProperty ("razao").ToString 
(),
                     Logradouro = line.Document.GetProperty ("logradouro").
ToString (),
                     Nr = line.Document.GetProperty ("nr").ToString (),
                     Complemento = line.Document.GetProperty ("complemento"
).ToString (),
                     Bairro = line.Document.GetProperty ("bairro").ToString 
(),
                     Cidade = line.Document.GetProperty ("cidade").ToString 
(),
                     Cep = line.Document.GetProperty ("cep").ToString (),
                     Produto = line.Document.GetProperty ("produto").
ToString (),
                     Fone = telefone [0].Value<string> ("numero")
                 });
             } 


-- 
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/ec506a2b-999e-4887-b509-972b8cc3649d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to