on 05-03-2018 10:27 AM
In our MTA project, we are using .hdbtabledata and .csv files to populate some of the tables with initial data. Those tables are afterwards being populated by our applications with new data. It used to work fine, we had several deployments, and everything was OK. However, after the last deployment, we have lost all other data from those tables, apart from the data provided by csvs.
We investigated the Key-Reservation Import Scenario andImport Column Scenario provided in HANA Developer Guide, but none of them seems to fulfill our requirement - to import some initial data by first deploy of application, and then to populate the same tables with new data without fear that data could be lost by the next deployment.
Any recommendations about this?
You say the key reservation import doesn't work for you. How so? That is the mechanism provided to be able separate the imported data area from other data that isn't to be touched via some key specification. You might need to add another column to your table definition in order to supply this difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom,
Thank you for your answer.
We decided not to use .hdbtabledata file, as it seemed too risky for us after data loss.
However, as described in my answer to Dirk, we experienced data loss again, even without using that file.
We also undeployed the file, which made distinction that after deploy all data from those tables were lost, and not only data inserted by application.
How comes that? If there is no .hdbtabledata file anymore, where is the reference to delete data from tables that were previously populated by that file?
And one more strange thing. We had many many successful deployments of hdb module without data loss. Only when we added unique constraints to technical configuration of some of the tables inside .cds file, data loss has occured. How comes that?
Thank you for all of your answers! 🙂
Best Regards,
Olja
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.