okneb1
6th December 2022, 16:42
We have a custom LN table, where we insert records directly from SQL DB (with triggers). I can see these records in LN just fine, but if I try updating any of them with db.update(xxxx,...) I always get error 201 (I have set retry.point and so on). I suspect corrupted index is the problem here, probably because records are not inserted via LN DB driver/layer. What's really interesting here is that I can update this record via GTM session, but not with code.
If I do Reorganize Table (with indices) in LN, db.update starts to work until another new record gets inserted via DB trigger. Probably because Reorginaze process also rebuilds indexes.
Does anyone have any experience working with LN records that were not inserted via LN db driver, but direclty via DB triggers or some other 3rd party software? Seems like in this scenarios LN has problems with updating records because of mismatched indexes.
If I do Reorganize Table (with indices) in LN, db.update starts to work until another new record gets inserted via DB trigger. Probably because Reorginaze process also rebuilds indexes.
Does anyone have any experience working with LN records that were not inserted via LN db driver, but direclty via DB triggers or some other 3rd party software? Seems like in this scenarios LN has problems with updating records because of mismatched indexes.