I'm running 0.7.3a655625.
It seems like Hans, Damien and Jan were correct though. The JS I was
writing was technically invalid. I've since added guard statements
to my views and they're working fine.
Bob
On May 13, 2008, at 3:19 PM, Christopher Lenz wrote:
On 13.05.2008, at 23:19, Bob Briski wrote:
I've found that I can't create a view with a key that includes a
document key that doesn't exist in all documents.
I confused myself with that opening statement so here's an example
of what I'm talking about:
http://pastie.caboo.se/196397
I understand if this is the way it's supposed to work. I also
understand that I can use an if statement to check if the key
exists in the document. However, that means that if I change the
schema of future documents and I've written a previous view that
doesn't check for all of it's keys, those previous views cease to
function.
I thought that a large advantage of document databases is the
ability to change the schema of your documents and not cause
problems. Is this not the case, or am I thinking of this
incorrectly?
What CouchDB version are you using? I think you're running into a
bug in the JS view server that was fixed in trunk sometime after
the 0.7.2 release.
Cheers,
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/