When investigating a data transmission problem today, we found that the data transmission volume is large, resulting in transmission timeout. We carefully reviewed the associations in a data table. We found that nearly 20 tables are associated. After more than 10 basic associations are performed on the data in a business table, the data volume has increased by thousands of data records to tens of thousands of data records. Most of the data we use is leftj.
When investigating a data transmission problem today, we found that the data transmission volume is large, resulting in transmission timeout. We carefully reviewed the associations in a data table. We found that nearly 20 tables are associated. After more than 10 basic associations are performed on the data in a business table, the data volume has increased by thousands of data records to tens of thousands of data records. Most of them are left j.
When investigating a data transmission problem today, we found that the data transmission volume is large, resulting in transmission timeout. We carefully reviewed the associations in a data table and found that
Nearly 20 tables are associated. After more than 10 basic associations are established for a business table, thousands of data records are increased to tens of thousands of data records, most of us use left join,
However, when we associate the table with the last table, this table is a temporary table with less than 10 data records, but the query speed of a single join table will immediately decrease by more than a hundred times.
After several tests, it was confirmed that joining the temporary table is a key factor causing data timeout. Therefore, we considered importing the data of this temporary table into a physical table and then associating it.
This greatly improves the efficiency and solves the problem of data timeout.
After this experience, I feel the inefficiency of temporary tables in some special scenarios. Therefore, we recommend that you consider using temporary tables.
Efficiency issues.