Query table timing out when trying to save
I have a query table that pulls from 2 tables with 200k+ rows. When I try and save it it gives me the following error
"Execution of the specified query was aborted, as processing time exceeded the allowed time limit. This is done to avoid any performance impact on the Zoho Reports service.
Some tips to avoid this:
Verify whether you have unnecessary table joins in the query Or could you simplify it further
Verify whether you have redundant "Order By" clause or any "Order By" over a general plain text column
For further assistance contact us at support@zohoreports.com with your SQL query."
Before i uploaded all 200k records it saved just fine. Now that there are many more records it is not saving and keeps timing out.
The query is below.
select sales_details_t1.invoice_no, sales_details_t1.customer_name, sales_details_t1.item_desc, sales_details_t1.invoice_dt, sales_details_t1.invoice_litem_no, lineValue, sales_credit_t2.CreditValue, sales_details_t1.invoice_qty, sales_credit_t2.ret_qty, sales_details_t1.invoice_qty - sales_credit_t2.ret_qty as netSoldQty, lineValue - sales_credit_t2.CreditValue as netSalesValue from sales_details_t1 left join sales_credit_t2 on sales_details_t1.invoice_no = sales_credit_t2.invoice_no and sales_details_t1.invoice_litem_no = sales_credit_t2.invoice_litem_no