Hey Friends, I have a couple of beginner-ish quest...
# orm-help
m
Hey Friends, I have a couple of beginner-ish questions and I wonder if anyone here can point me in the right direction... 1) I'm looking to set up a cron job that runs a function that will check the database and send out various reminders to users based on certain criteria. I'm at a little bit of a loss as to where to start with this in a prisma / gql-yoga environment. 2) I'm noticing that my application is at times very slow and I'm wondering if this is simply because I'm using the free Prisma dev environment. Is the paid tier faster or is it likely that the issue is on my end? Thanks in advance for any help
f
1) you'll have to come up with your own solution for this. Search for cronjob-projects/libraries for javascript, because yoga (which is just a collection of express.js, apollo-server and stuff) and prisma do not cover these topics 2) other people around also noted, that the prisma free cloud seems to be a bit slow today, so yeah.. most likely that will be the problem
Maybe this is something that gets you started with cronjobs: https://scotch.io/tutorials/nodejs-cron-jobs-by-examples
m
thanks so much @fgreinus. Really appreciate the help 🙂
f
No problem 🙂