Skip to content
This repository was archived by the owner on Apr 21, 2020. It is now read-only.
This repository was archived by the owner on Apr 21, 2020. It is now read-only.

Map / Reduce support? #1

Description

@sheavner

Would it be possible to add map/reduce to the supported command sets.

I'd really like to be able to spam all the map/reduce commands in a single string.

m = function () { emit(this.field, 1);}; r = function (k, vals) {return Array.sum(vals);}; res = db.mycollection.mapReduce(m, r, { out : "temp_col1" }); db.temp_col1.find({value: {$gt: 1}}); db.temp_col1.drop();

It would be ok if the format weren't the same as the mongo shell, but required some special flags to define functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions