u1db-discuss team mailing list archive
-
u1db-discuss team
-
Mailing list archive
-
Message #00074
Re: Some view functions to ponder
-
To:
u1db-discuss@xxxxxxxxxxxxxxxxxxx
-
From:
Lucio Torre <lucio.torre@xxxxxxxxxxxxx>
-
Date:
Wed, 18 Jul 2012 16:31:02 -0300
-
In-reply-to:
<CAHE3fn5v1NLAtLQASghR-xeH_5iXg4b0Mi=yROALn+p+3rcJqg@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1
On 07/17/2012 02:34 PM, John Meinel wrote:
It does seem like a place where user defined funcs could work. (Here
are some documents, give us a string to index on). Now whether the
complexity of supporting user defined functions is worth the effort..
It is always possible to do user define functions by hand.
1- When adding an index iterate over all docs and add a field index_name
= udf(doc)
2- Before saving a doc update the field.
3- create an index on the new field.
And now that we have document factories, this is even easier. So
everything except reduce is possible, although not necessarily straight
forward.
If we see this pattern of usage emerge, we can then invest in user
defined functions for indexes.
Lucio.
References