dmulligan
dmulligan
NNovu
Created by dmulligan on 10/6/2023 in #💬│support
MongoDB : Jobs table - High number of records returned
We noticed a speed increase for fetching a non-cached feed for a subscriber from around 10/15 seconds to 50-80ms.
11 replies
NNovu
Created by dmulligan on 10/6/2023 in #💬│support
MongoDB : Jobs table - High number of records returned
@todd only a few of the indexes were created to get us our of a hole, I will loop back around and check to see what others need to be created.
db.messages.createIndex({"_subscriberId":1})
db.messages.createIndex({"_environmentId":1})
db.jobs.createIndex({"_environmentId":1})
db.jobs.createIndex({"_subscriberId":1})
db.jobs.createIndex({"_organizationId":1})
db.jobs.createIndex({"_parentId":1})
db.messages.createIndex({"_subscriberId":1})
db.messages.createIndex({"_environmentId":1})
db.jobs.createIndex({"_environmentId":1})
db.jobs.createIndex({"_subscriberId":1})
db.jobs.createIndex({"_organizationId":1})
db.jobs.createIndex({"_parentId":1})
11 replies
NNovu
Created by dmulligan on 10/6/2023 in #💬│support
MongoDB : Jobs table - High number of records returned
Just answering this for anyone else that has issues with AWS DocumentDB. I was seeing slow performance and in this question was interested to see if the number of records in the database was a factor. While I still need to investigate if records will get cleaned up on their own, I have a feeling they may not as expireAt is not set for jobs or messages, the issue here was missing indexes. There appears to be a compatibly issue when it comes to creating indexes in DocumentDB. When I identified this, and created the missing indexes on the job and message table, I noticed a huge speed increase.
11 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
Within the code, I only see a few references to 'PostmarkError' and they are around the checking of the integration. I assume in the first image I shared, the content of the json is getting populated some other way rather than the hard coded 'PostmarkError'
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
That looks exactly like what I would expected, and thanks for that review. I guess the issue is that there clearly is a problem with my env, but the error log does not report any exception at all, yet their is an error displayed within the web application.
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
Just not via the API. In app notifications work just fine.
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
What is odd, if I click the 'Test' tab in the template, and send an email it works
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
0.16
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
No description
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
2. curl --location 'https://xxxxx:443/api/novu/v1/events/trigger' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer XXXXX' \ --data-raw '{ "name": "email-template-pref-test", "to": [{ "subscriberId": "644cf8d6-bed3-4c8d-a38c-87042c04166f", "email": "xxxxxxx", "firstName": "John", "lastName": "Doe" }], "payload": { } }'
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
1. Self host
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
I have not noticed an error / exception in the log files.
17 replies
NNovu
Created by dmulligan on 9/4/2023 in #💬│support
Postmark email issue
No description
17 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
@novu/shared tweaks
FYI, I have shared the fix back as a PR https://github.com/novuhq/novu/pull/3814
18 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
@novu/shared tweaks
That worked, once the version is locked, it will use the local version of @novu/shared. A huge thank you for that information.
18 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
@novu/shared tweaks
I will try as you suggested next
18 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
@novu/shared tweaks
I added the following to apps/web/Dockerfile
COPY --from=builder /usr/src/app /builder/app
COPY --from=builder /usr/src/app /builder/app
And within the created web container, I ran the following commands. You can see that @novu/shared is getting built correctly, but a different copy of Novu shared is included within the web's copy of node_modules
/app # cd /builder/

/builder # head -3 app/apps/web/package.json
{
"name": "@novu/web",
"version": "0.16.1",

/builder # grep shared app/apps/web/package.json
"@novu/shared": "^0.16.1",

/builder # head -3 app/libs/shared/package.json
{
"name": "@novu/shared",
"version": "0.16.1",

/builder # ls -l app/apps/web/node_modules/@novu/
total 8
lrwxrwxrwx 1 root root 20 Mar 23 10:29 dal -> ../../../../libs/dal
lrwxrwxrwx 1 root root 129 Jul 17 17:01 notification-center -> ../../../../node_modules/.pnpm/@[email protected]_sype5lc4hh4jvxdmzxcsfqy6ba/node_modules/@novu/notification-center
lrwxrwxrwx 1 root root 76 Jul 17 17:01 shared -> ../../../../node_modules/.pnpm/@[email protected]/node_modules/@novu/shared
lrwxrwxrwx 1 root root 24 Mar 23 10:29 testing -> ../../../../libs/testing

/builder # head -3 app/apps/web/node_modules/@novu/shared/package.json
{
"name": "@novu/shared",
"version": "0.16.3",
/app # cd /builder/

/builder # head -3 app/apps/web/package.json
{
"name": "@novu/web",
"version": "0.16.1",

/builder # grep shared app/apps/web/package.json
"@novu/shared": "^0.16.1",

/builder # head -3 app/libs/shared/package.json
{
"name": "@novu/shared",
"version": "0.16.1",

/builder # ls -l app/apps/web/node_modules/@novu/
total 8
lrwxrwxrwx 1 root root 20 Mar 23 10:29 dal -> ../../../../libs/dal
lrwxrwxrwx 1 root root 129 Jul 17 17:01 notification-center -> ../../../../node_modules/.pnpm/@[email protected]_sype5lc4hh4jvxdmzxcsfqy6ba/node_modules/@novu/notification-center
lrwxrwxrwx 1 root root 76 Jul 17 17:01 shared -> ../../../../node_modules/.pnpm/@[email protected]/node_modules/@novu/shared
lrwxrwxrwx 1 root root 24 Mar 23 10:29 testing -> ../../../../libs/testing

/builder # head -3 app/apps/web/node_modules/@novu/shared/package.json
{
"name": "@novu/shared",
"version": "0.16.3",
18 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
@novu/shared tweaks
18 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
@novu/shared tweaks
Thanks for your message @dimagrossman the web package.json file is an exact match to https://github.com/novuhq/novu/blob/v0.16.1/apps/web/package.json
18 replies
NNovu
Created by dmulligan on 7/17/2023 in #💬│support
Slow down in performance / Redis / self host
Is there a simple way to see the outstanding tasks at a given point in time?
7 replies