Default queries for 3.14

Synergy Dave7 years ago

Hi,
I'm using traccar with forward url feature, all works fine until I upgraded to 3.14
I don't want to save positions into h2 db, because it becomes huge and I don't need that, I'm just forwarding it to another process, I set generateQueries to false, but it complains about database.selectDevices and database.insertDevice which I can't find. Can someone tell me which values should be set for those queries or where to find default queries (in case I need others).

Here's my config (partially):

<entry key='database.ignoreUnknown'>false</entry>
<entry key='database.registerUnknown'>true</entry>
    
<entry key='database.generateQueries'>false</entry>
 
<...... missing insertDevice and selectDevices queries....>

Regards,

Anton Tananaev7 years ago

You can take them from 3.13 config:

https://github.com/tananaev/traccar/blob/v3.13/setup/default.xml

For selectDevices check selectDevicesAll.

Synergy Dave7 years ago

Hey Anton,
thank you it works.
just having those two messages:

2017-09-05 10:38:13  INFO: Query not provided: database.updateDeviceExtended
2017-09-05 10:38:13  INFO: Query not provided: database.insertPosition

I guess I don't need the insertPosition since I'm using url forward, but is updateDeviceExtended necessary, and if yes, where to find it?

Best,

Anton Tananaev7 years ago

If you only use forwarding, I believe you can safely ignore both.

Synergy Dave7 years ago

Great, thank you.