N.B. database.historyDays / database cleanup removed

Christoph Krey3 years ago

With traccar server 4.12 this commit
the default parameter database.historyDays was removed.

If you want to keep your database tidy, use a script like clear history.

It may be a good idea to

Christoph Krey3 years ago
Jose B3 years ago

Hi

Esse database.historyDays remover? Why?

JB

Anton Tananaev3 years ago

It did not work in many cases. On large database it locks tables and times out.

Jose B3 years ago

Anton
I am reading the site https://www.traccar.org/clear-history/ and I think that have a error in sql syntax.

Where you use: "SELECT positionId FROM tc_devices" after "not in".

I think that the correct will be "SELECT positionid FROM tc_devices WHERE positionid IS NOT NULL"

please check https://stackoverflow.com/questions/15525636/mysql-not-in-doesnt-work

I am not proggramer, so I cannot know if this is a issue, because in my DB is returning empty rows, but it is not true

can you help?

JB

Anton Tananaev3 years ago

You are probably right. I'll update it.

Please next time don't add so many quotes everywhere. It actually broke your links.

Jose B3 years ago

Works ! I could delete older registers

JB