I am adjusting the SQL statement for data input. There is a guideline to use rising input mode.
SELECT * FROM your_table
WHERE dtime > ?
ORDER BY dtime ASC
How to use the checkpoint value (?) also as upper limit? Say... WHERE dtime > ? AND dtime < ? + INTERVAL '1 day'
I've ran across this several times when our databases that do not have a rising column or incrementing ID (Primary Key). Our solution was to change these to batch and query records between datetime and set the DB connect to query to the record time.. example if i grab the last 15 mins of records then I would set the DB connect to query every 15 mins.
The rising column has to be numeric. There maybe some better answers out there. This has always worked for us.