Certain operations are too complex to perform directly using the client libraries. Solution In cases where operations are overly complex or not feasible to implement directly using the client libraries, it might be beneficial to leverage stored functions within your database.