Jens,
The Map function was as short as possible, but still continues at the same time 
(30 seconds).
see:


                 vwrestaurantes.SetMap ((document, emitter) => {
                     if ((document ["blativo"].ToString () == "1") && (document 
["type"].ToString () == "E")) {
                         var titulos = (JArray)document ["titulos"];
                         for (int i = 0; i < titulos.Count; i++) {
                             if (titulos [i].Value<string> ("descricao").
ToLower ().Equals ("LANCHERIAS")) {
                                 emitter (titulos [i].Value<string> (
"descricao").ToLower (), document ["nome"]);
                             }
                         }
                     }
                 }, ver); 

This time (30 seconds) is being spent in the code below:


             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").ToString 
()
                 });
             }


I do not understand what this code above has to do with the map function, 
because 
the query has been executed.

-- 
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/31d68586-5253-4f8c-877a-4e75691ec7fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to