Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Decrease Query execution time.

Decrease Query execution time.

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasequestionsql-serversysadminhelp
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RA UL PATEL
    wrote on last edited by
    #1

    Hello friends, I am facing problem since last 5-6 month in sql server in query executing it takes 10-12 mins to execute even if database is on local pc. I want to decrease it and want to make it execte withing 30-40 sec.. It is getting data of whole month with subquery of 1-30 date and each joining 3-5 tables for 300-500 persons. so any ideas.... :confused: :doh: One thing that i can do some process in background and insert fetched data to the some other table and at the time of executing above query fetch data from that table. if its possible then how can i do it?Is there any other way to solve this problem? Thanks in advance.. :) RAHUL PATEL

    L P A 3 Replies Last reply
    0
    • R RA UL PATEL

      Hello friends, I am facing problem since last 5-6 month in sql server in query executing it takes 10-12 mins to execute even if database is on local pc. I want to decrease it and want to make it execte withing 30-40 sec.. It is getting data of whole month with subquery of 1-30 date and each joining 3-5 tables for 300-500 persons. so any ideas.... :confused: :doh: One thing that i can do some process in background and insert fetched data to the some other table and at the time of executing above query fetch data from that table. if its possible then how can i do it?Is there any other way to solve this problem? Thanks in advance.. :) RAHUL PATEL

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Rahul Say hiiiii wrote:

      so any ideas

      You could try posting your question in the correct forum.

      Just say 'NO' to evaluated arguments for diadic functions! Ash

      1 Reply Last reply
      0
      • R RA UL PATEL

        Hello friends, I am facing problem since last 5-6 month in sql server in query executing it takes 10-12 mins to execute even if database is on local pc. I want to decrease it and want to make it execte withing 30-40 sec.. It is getting data of whole month with subquery of 1-30 date and each joining 3-5 tables for 300-500 persons. so any ideas.... :confused: :doh: One thing that i can do some process in background and insert fetched data to the some other table and at the time of executing above query fetch data from that table. if its possible then how can i do it?Is there any other way to solve this problem? Thanks in advance.. :) RAHUL PATEL

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Rahul Say hiiiii wrote:

        I am facing problem since last 5-6 month in sql server in query executing it takes 10-12 mins to execute even if database is on local pc.

        Profile the query to see what's going on behind the scenes. It sounds like you have missing indexes there and that the query is performing table scans.

        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        1 Reply Last reply
        0
        • R RA UL PATEL

          Hello friends, I am facing problem since last 5-6 month in sql server in query executing it takes 10-12 mins to execute even if database is on local pc. I want to decrease it and want to make it execte withing 30-40 sec.. It is getting data of whole month with subquery of 1-30 date and each joining 3-5 tables for 300-500 persons. so any ideas.... :confused: :doh: One thing that i can do some process in background and insert fetched data to the some other table and at the time of executing above query fetch data from that table. if its possible then how can i do it?Is there any other way to solve this problem? Thanks in advance.. :) RAHUL PATEL

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          Try to check if making use of a temp table is better than the subquery. BTW, this is a .Net forum.

          The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups