Low timeliness of using temporary tables to associate data

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.