pub async fn count_instances(pool: &Pool<MySql>) -> Result<i64>
Expand description
Counts the total number of instances across all applications.
This function returns the total count of instances in the database. It’s useful for monitoring overall resource allocation and usage.