Closed olafveerman closed 11 years ago
A collection with the data already preprocessed was created. This should only be a temporary fix.
use incendios;
var col = db.occurrencedetails;
var fields = {
'_id' : 0,
'type' : 1,
'properties.x' : 1,
'properties.y' : 1,
'properties.distrito' : 1,
'properties.concelho' : 1,
'properties.freguesia' : 1,
'properties.aaid_freguesia' : 1,
'properties.data_alerta' : 1,
'properties.aa_total' : 1,
'properties.tipocausa' : 1,
'geometry' : 1
};
col.find({ 'properties.aa_total' : { $gt : 10 }}, fields).sort({'properties.aa_total': -1}).limit(10);
After moving the raw occurrence details to a separate DB in Mongo, the big fires stopped working.