Question

I have just read http://developer.gooddata.com/cloudconnect/manual/incremental-reading.html about incremental reading but I don't know still how to create the required incremental file. I am able to set incremental key, but where is the incremental file, how to create it?

Thank you very much!

Petr

Était-ce utile?

La solution

Just create a new file like "key.txt" in your Project folder and then go to the Reader component settings and select this file to be Incremental File. You have to first fill in the initial value, for example:

'IncrementalFile.txt' content:

key = -1

Then you are able to setup the Reader Component to following:

incrementalFile="IncrementalFile.txt"
incrementalKey="key=max(employee_id)"
sqlQuery="select * from employee where employee_id>#key"

Let me know if you have any problem with it. Once set up the Incremental key should be automatically updated after each run.

Thanks,

JT

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top