01-24-2024 07:17 AM
Hi, Team:
I need help.
My project uses NSO for 10 years. There is a table (a list with single key)
grows very big during 10 years. Every time I insert or delete an entry from/to the table the maapi.applyTrans takes 2-3 minutes.
This really impacts the customers.
Is there any one has the same issue?
Any suggestions?
THX
sm000x
01-24-2024 08:15 AM
Hi, Just add more information on my question.
(1) There is no device involved. The table is in cdb, to add/delete entry from the table does not trigger device actions. But it takes 2-3 minutes.
(2) By using "commit | details", I found the 99% time is spend on "dependency-triggered validation"
Hope this can provide more information.
THX
sm000x
01-29-2024 11:25 PM
What kind of validation constraints exist in your model?
Have you looked in the xpath log?
Adding items to a list is usually easier (require less validation work) than deleting items.
02-01-2024 07:29 AM
02-07-2024 02:47 AM
Hi,
If you are using the leafref as a way to have CLI completion and WebUI drop-downs, you can check to use "tailf:non-strict-leafref" extension. I did not check its performance in large lists.
You use it this way:
leaf name {
type string;
tailf:non-strict-leafref {
path "/ncs:devices/ncs:device/ncs:name";
}
}
02-07-2024 06:28 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide