简体   繁体   English

创建临时表perl cgi dbi

[英]Creating temporary tables perl cgi dbi

I have sql containing 8 table joins which takes time to fetch the data considering the amount of joins in the sql. 我有包含8个表联接的sql,考虑到sql中的联接量,这需要时间来提取数据。 I could create a temp table and simply the sql which might help speed up the data retrieval process. 我可以创建一个临时表,而仅创建一个sql,这可能有助于加快数据检索过程。

i am trying to fetch the data using this sql in perl cgi dbi. 我试图在perl cgi dbi中使用此sql来获取数据。 Does it makes sense to create a temp table on a web application? 在Web应用程序上创建临时表是否有意义?

I have certainly used temp tables in SQL for a web application before. 我以前肯定在SQL中将临时表用于Web应用程序。 The web application part really doesn't have anything to do with it. Web应用程序部分实际上与它没有任何关系。 Would a temp table make your SQL more efficient? 临时表会使您的SQL更高效吗? You'd have to be a lot more specific with your question for us to tell. 您必须对您的问题更加具体,以便我们告诉您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM