-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(mojaloop/#3565): database and cache optimizations #318
Conversation
quoteRequest.amount.amount, quoteRequest.amount.currency, payerEnumVals), | ||
this.db.createPayeeQuoteParty(txn, refs.quoteId, quoteRequest.payee, | ||
quoteRequest.amount.amount, quoteRequest.amount.currency, payeeEnumVals) | ||
]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting off consolidating these two into a single insert since createQuoteParty
has itself several queries that would also need refactoring to a single insert for the quote pair.
@@ -196,10 +199,11 @@ const config = new Config() | |||
* @description Starts the web server | |||
*/ | |||
async function start () { | |||
const cache = new Cache() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can pass a singular cache to the db and for api request caching but have kept them seperate for now. Any thoughts on a singular cache for everything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
feat(mojaloop/#3565): database and cache optimizations - mojaloop/project#3564 mojaloop/project#3565
getParticipantByName
/EnabledgetParticipant
andgetParticipantEndpoints
database cachingfetchParticipants
api functiongetParticipant
calls in validating quote requestshandleQuoteRequest