incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Williams <thomas.willi...@dubitlimited.com>
Subject View configuration
Date Sat, 10 Jan 2009 19:20:08 GMT
Hi chaps,I've spent a couple of days playing around with version 0.80 and I
think I might be missing something. Is it possible to configure views at
query time or do they have to always be effectively 'static'. I mean can I
write a view something like this:

function(doc, user_id) {
  if(doc.user_id=user_id)
    emit(doc)
}

Then pass user_id as a parameter to each query. If not, does anyone know how
I can go about retrieving data based on a unique key in an efficient manner?

Thanks,
Tom

-- 
Thomas Williams
Java Programmer
Dubit Limited
+44 1133 947920
www.dubitlimited.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message