At 11:20am PST on May 24th we were alerted that our backend was down. Upon investigation, we found that our database connections were failing due to an inefficient looped query that was causing locks in our database. We identified the problem in our code and cleared all the locks to get the server back online. Our engineering team pushed out a fix to prevent this query from locking the database again.