replace last record if filter.duplicate enabled

jafar habibi2 years ago

I would like to know what are the drawbacks of replacing of last record with new data data if entry key='filter.duplicate'>true</entry>.
when the device is stationary the position is the same and this filter causes the new record to be eliminated. but record may contains some useful information like HDOP, Voltage, .. . filter.duplicate ignores this information. I would like to know is there any way we could replace the last record with new one instead of ignoring it?

Anton Tananaev2 years ago

Sounds like you should just disable filtering.

jafar habibi2 years ago

disabling filtering grows database size and has a huge impact on performance (reports specifically) . but replacing the last position with new one doesn't have such drawbacks. I mean to add something like <filter.replaceOnDuplicate> true. this way last duplicate records always contain updated attributes.

Anton Tananaev2 years ago

Not possible currently.