abhi62003 / relax-net

Automatically exported from code.google.com/p/relax-net
GNU General Public License v3.0
0 stars 0 forks source link

Cannot execute a view #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This command works very fast and is just what I want:

 curl http://kevin-linux:5984/buyseasons/_design/product/_view/by-sku

No how do I get my driver (Hammock) to issue a similar command? I have tried:

            List<string> skuList = new List<string>();
            using (Session session = _couchConnection.CreateSession(dbName))
            {
                Repository<Shared.Types.Couch.Product> r = new Repository<Shared.Types.Couch.Product>(session);
                skuList = r.Queries["by-sku"].All().Select(p => p.SKU).ToList();
            }

But this takes 30 minutes up to an hour to run. It is obviously not executing 
the same code as the 'curl' command. Ideas

Original issue reported on code.google.com by ronald.k...@gmail.com on 5 Dec 2012 at 1:46