Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

auto_increment @hdbcds on SPS12

$
0
0

Hi,

 

I've seen in this Thread How to have an auto increment primary key in HDBDD that there is no chance to set an auto_increment yet. Are there any changes for SPS12 ?

 

We have a lot of Tables, writing a sequence for every single table is not a real option here, because we must change every SQL-Statement as well.

 

Here EXPERIENCE WITH IDENTITY FEATURE IN SAP HANA I've read, that it is possible to create an auto increment by SQL itself. When I fire this SQL-Statement, the table wont be created in the new XSA Catalog.

 

Currently, we read out the MAX(ID) from our table, set it to +=1 and set this as the new ID.

The biggest problem for now is, that Node.JS and AJAX are asynchronous. If we fire many calls (100 and above) to the same table, several insert-calls are concurrent, because up to 5 (due to AJAX) are fired simultaneously. At 100 calls, up to 60% of the data will be dismissed, because of a constraint violation (same ID).

 

 

Thank you in advance.


Viewing all articles
Browse latest Browse all 9165

Trending Articles