We are currently using ES 1.4. We are using incremental river to fetch delta change from DB.
We are using the below query:
{
"type": "jdbc",
"jdbc": {
"url": null,
"user": "userName",
"password": "pwd",
"sql": {
"statement": "select * from table where SYS_EXTRACT_UTC(column1) >= ? OR SYS_EXTRACT_UTC(column2) >= ?"
},
"parameter": ["$river.state.last_active_begin",
"$river.state.last_active_begin"
],
"index": "indexName"
},
"schedule": "0 */1 * ? * * *"
}
When we are looking in ES logs we are seeing the rows returned are always greater than 0 even though no changes are made in either "column1" or "column2".
Also can we use column strategy in this case.