-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issue when using sr_get_data() #3461
Comments
Yes, the main performance git is when using an |
Thank you very much for your response. I have adjusted my database. Since the defined yangmnt:mount-point children-of-SubNetwork is not actually used, mount data as shown below:
Unfortunately, the performance issues still persist. Could you please provide some additional suggestions? |
How exactly are you testing it? When a process parses the data the first time, the context will need to be created whether you use |
The data of
The data of
I use the Test case example:
I obtained the values of the above four xpaths in sequence through I would like to ask Thanks. |
Firstly, you should remove the line |
Thank you very much for your correction
I have prepare YANG modules with imports, you can get them via https://github.com/DDavisZhou/_3gpp-common-subnetwork-files
But when I want to get some subnetwork values using XPath, it takes me too much time. |
It seems you have not included the mounted modules, please do. Have you installed them into sysrepo? Otherwise you would have to provide them in |
The _3gpp-common-subnetwork.yang file uses yangmnt:mount-point as follows:
But actually , the node of " Will this affect performance? |
In your running data you posted before there are data of (likely) modules |
Hi, Team
I am experiencing a performance issue when using
sr_get_data()
to retrieve a tree whose root nodes match a provided XPath.Normally, this operation takes under 0.01 seconds. However, when I use an XPath defined by
_3gpp-common-subnetwork.yang
, it takes about 0.3 seconds.Example xpth:
/_3gpp-common-subnetwork:SubNetwork[id='1']/_3gpp-nr-nrm-externalgnbcucpfunction:ExternalGNBCUCPFunction[id='2']/attributes/gNBId
The
_3gpp-common-subnetwork.yang
file uses yangmnt:mount-point as follows:I suspect that the use of yangmnt:mount-point might be related to the increased retrieval time.
Could you provide any suggestions or insights into why this might be happening? Are there known performance issues with yangmnt:mount-point, or are there any optimizations I can apply to improve the retrieval time?
Thank you for your assistance.
The related version I used as the follow:
The text was updated successfully, but these errors were encountered: