shatteredsilicon / ssm-submodules

GNU Affero General Public License v3.0
1 stars 2 forks source link

QAN - Increase number of query examples collected #279

Open gordan-bobic opened 3 months ago

gordan-bobic commented 3 months ago

We currently seem to store one query example per query template per day. Add functionality to increase that to 1 per hour or 1 per minute, controllable with a parameter: QAN_EXAMPLE_RESOLUTION=[MINUTE|HOUR|DAY] with default=DAY (same as now).

This should be doable by DATE_FORMAT-ing the timestamp to include the hour and minute, instead of using a timestamp that has the time part always set to '00:00:00'.