-
Notifications
You must be signed in to change notification settings - Fork 49
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
Continued performance improvement action items. #1633
Comments
@wadeking98 FYI. |
@jleach — I suspect that the schema is needed, or will be a pain if you don’t get it, so I would skip that one until you really know the functionality. I misspoke on that one — technically correct, but likely not practical. Getting rid of the reads 2-4 in your list above would be the priority — easpecially if they are not cached. |
Hey team! Please add your planning poker estimate with Zenhub @bryce-mcmath @jleach @wadeking98 |
I suggest that this be moved up in priority, as per this note in an Indy VDR issue. I think the change should be pretty easy (I hope) -- adding a call (or perhaps updating the data if it already being used). From the description above:
|
Closing this ticket and creating a new one to update indyvdr to incorporate performance enhancements. |
While Andrew W is going to make some IndyVDR improvements, the following action items can be done in AFJ
No need to lookup schema
There is no need to lookup both the credential definition ID and schema ID as the cred definition ID contains the schema. This would remove some redundant AFJ ledger lookups and help speed up the transaction process.
Caching
We should cache calls to the ledger as much as possible
Make sure to cache cred defn lookups, not just TX IDs.
We need to make sure we're cashing TX ID, cred definition, and schema lookups. Not just any one of these.
IndyVDR Options
IndyVDR has the option to "refresh" the pool on startup. If this is not passed in as a parameter when the pool is initialized the default time to do this is 120m (2h). We need to make sure this is being done on pool initialization.
References
openwallet-foundation/credo-ts#1613
Future Work
IndyVDR Time Out
There is a timeout, I think it was if a node does not respond to a query, that has a default timeout of 20sec. This should be optimized in IndyVDR to be closer to 3-5 seconds.
No need for duplicate lookups
When AFJ accepts a credential the logs show the following ledger lookups:
There is no need to "get transaction" and "get credential definition" to be called 2x. Although cashing may improve this it may be better to just remove duplicate network calls.
The text was updated successfully, but these errors were encountered: