incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bryan rasmussen <rasmussen.br...@gmail.com>
Subject Re: copying a document with some fields removed
Date Tue, 12 Jun 2012 07:52:38 GMT
So deployment should take into account spidermonkey differences if I
do it this way?

Thanks,
Bryan Rasmussen

On Tue, Jun 12, 2012 at 9:08 AM, Robert Newson <rnewson@apache.org> wrote:
> Hm, the doc object should be sealed, though. You won't be able to
> modify it reliably (it'll depend on whether you link against a
> spidermonkey that supports object sealing, which is most, but not all,
> of them).
>
> B.
>
> On 12 June 2012 07:44, bryan rasmussen <rasmussen.bryan@gmail.com> wrote:
>> hey yeah, that should work fine, I just set it to 'private' when I
>> emit. Damn, I should have thought of that, down in the code too long
>> is making me tunnel visioned :)
>>
>>
>> thanks,
>> Bryan Rasmussen
>>
>> On Tue, Jun 12, 2012 at 4:03 AM, Zera Holladay <zeraholladay@gmail.com> wrote:
>>> Try deleting the username field in the view and then emitting the doc?
>>>  I don't know why it would work, but I don't know why it wouldn't
>>> either.  Just an idea.
>>>
>>> -zh
>>>
>>> On Mon, Jun 11, 2012 at 8:45 PM, Robert Newson <rnewson@apache.org> wrote:
>>>> why not use a show or list function that removes that field?
>>>>
>>>> B.
>>>>
>>>> On 12 June 2012 01:37, Jens Alfke <jens@couchbase.com> wrote:
>>>>>
>>>>> On Jun 11, 2012, at 4:29 PM, bryan rasmussen wrote:
>>>>>
>>>>>> Does couchdb have some sort of higher level way of doing this that
>>>>>> will have better performance than just looping through the object
and
>>>>>> copying over every property unless it is the username one?
>>>>>
>>>>> Is the performance of that a problem? Remember, the map function is only
run when a document is updated. It's generating an index, not performing the query.
>>>>>
>>>>> —Jens

Mime
View raw message