I have a self-host, and I have a table with several hundred thousand records. I need to quickly get the number of items based on filters, and the only way to do this is by making a direct query to mariadb. This is because the total in appwrite is limited to 5000