deanhiller / databus

time series data in cassandra with visualization(NREL's opensource databus project)
Other
53 stars 21 forks source link

Request: compact multi-row upload #19

Open hopcroft opened 11 years ago

hopcroft commented 11 years ago

When uploading multiple entries, you have to specify the table for every entry. For example:

{"_dataset":[
            {"_tableName":"timeSeriesExample","time":1360006292000,"value":162.6911},
            {"_tableName":"timeSeriesExample","time":1360006293000,"value":163.6911}
    ]
}

The name of the table is redundant. The message would be more efficient if the table could be specified once per upload message. Something like:

{"_tableName":"timeSeriesExample","_dataset":[
            {"time":1360006292000,"value":162.6911},
            {"time":1360006293000,"value":163.6911}
    ]
}