Results 1 to 3 of 3

Thread: creating and droping temptable to speed up the query?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    150

    creating and droping temptable to speed up the query?

    hi,
    I have report that is generated from joining three views. one view takes forever which slowes down the overall performance of the report. is it recommended to maybe create that table on the fly as #tempTable then join it with the other views then drop it ?

    if yes, can someone give me an code demonstrating how I can create that table, join it with other tables then drop it? thank you very much.

    waely

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: creating and droping temptable to speed up the query?

    Putting the data into a temp table will probably not help - as you still need to read everything from the view.

    Probably the best thing to do is optimise the "slow" view if you can.

    If you give us some details (such as what DBMS you are using, the code from the view, ..) we can suggest ways to do that.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    150

    Re: creating and droping temptable to speed up the query?

    thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width