As our database has continued to expand dramatically this week, we’ve come to a critical juncture where it’s become painfully obvious we cannot personally monitor all processes concurrently. It’s as though we’re in a growing city, bustling with data, where we can’t be on every street corner at once.
The remedy to this growing city’s dilemma is to build an infrastructure that will keep us informed and ahead of any possible issues. We need a system of checks, almost like our own automated patrol units, offering notifications and alerts to ensure everything is running smoothly.
Our mission for this week is akin to building a guardian for our city: we require an automated system that sends us a single email alert whenever a query takes more than a minute. Picture this as a vigilant sentinel, promptly reporting when there’s a delay in the usual flow of our database traffic. That’s the challenge, and the key to making our database city more efficient, we have ahead of us this week.
In short :
Create a mechanism that sends out an email if a query takes longer than 1 minute (or any amount of time that you specify).
Remember, if you want to participate:
- Sign up as a member of Frosty Friday. You can do this by clicking on the sidebar, and then going to ‘REGISTER‘
- Post your code to GitHub and make it publicly available (Check out our guide if you don’t know how to here)
- Post the URL in the comments of the challenge
3 responses to “Week 48 – Intermediate”
-
Thanks for continuing to showcase new functionality. I actually had a bit of an advantage here as my colleague Tinju has just released a blog on this exact topic!
https://interworks.com/blog/2023/05/23/understanding-snowflake-alerts-and-notifications/
- Solution URL – https://github.com/ChrisHastieIW/Frosty-Friday
-
I feel that alerts are glorified tasks… 🙂
- Solution URL – https://github.com/dsmdavid/frostyfridays-sf/blob/main/macros/ch_48.sql
-
Will be useful to know for a work project
- Solution URL – https://github.com/ChrisBo94/FrostyFriday/blob/main/Week_48.sql
Leave a Reply
You must be logged in to post a comment.