[SERVER-775] What if create something like CouchDB views with low cost of developing ? Created: 17/Mar/10 Updated: 06/Dec/22 |
|
| Status: | Open |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | features we're not sure of |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Kostyantin Voz | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 4 |
| Labels: | views | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Execution
|
||||||||
| Participants: | |||||||||
| Description |
|
I think that the only thing needed is ability to store query results to temp or existed collection, (or maybe only _id fields from matching docs, but better for flexibility we will need both first ) something like this http://jira.mongodb.org/browse/SERVER-610 . In CouchDB there are checking for changed documents already stored to view, this is not a good thing but I don't need that. I think that will be great to query already stored results from another query, that should be CPU efficient, but will take more disk space. And I think there are not so much work to do it. |
| Comments |
| Comment by T. Jameson Little [ 23/Feb/13 ] |
|
Bump. I like CouchDB's views, but I also like random queries in Mongo. Since Mongo already supports mapReduce, the results just need to be cached and inserts/updates need to trigger updates to the results. I don't know Mongo that well, but a simple Google search didn't turn up anything like this. |
| Comment by karl seguin [ 24/Oct/11 ] |
|
FWIW, I think just copying CouchDB's general take on views would be great. Additional control over when views are updated would be good (after every X new/updated document OR ever X seconds, in the background). You'd have to be able to index them, of course. It seems like a decent solution to MapReduce performance limits. |