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. C#
  4. Query Related problem

Query Related problem

Scheduled Pinned Locked Moved C#
databasesysadminhelpquestion
5 Posts 5 Posters 0 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.
  • A Offline
    A Offline
    Amit K Awsthi
    wrote on last edited by
    #1

    hi There is problem regarding fetching data from server. In a table ,There is 900000 records and join with other tables. Other tables also store 100000-2 records each. Query is written in Stored Procedure and it take 10 to 15 minuts in execution. How can We reduce execution time?

    A V S D 4 Replies Last reply
    0
    • A Amit K Awsthi

      hi There is problem regarding fetching data from server. In a table ,There is 900000 records and join with other tables. Other tables also store 100000-2 records each. Query is written in Stored Procedure and it take 10 to 15 minuts in execution. How can We reduce execution time?

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #2

      Use filter criteria (i.e., a WHERE clause) that will reduce the number of records to the minimum required (i.e., don't return unnecessary records). Ensure proper indexes are used for all columns in the JOIN. Show what query you are currently using?

      [Forum Guidelines]

      1 Reply Last reply
      0
      • A Amit K Awsthi

        hi There is problem regarding fetching data from server. In a table ,There is 900000 records and join with other tables. Other tables also store 100000-2 records each. Query is written in Stored Procedure and it take 10 to 15 minuts in execution. How can We reduce execution time?

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        lets your code

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        1 Reply Last reply
        0
        • A Amit K Awsthi

          hi There is problem regarding fetching data from server. In a table ,There is 900000 records and join with other tables. Other tables also store 100000-2 records each. Query is written in Stored Procedure and it take 10 to 15 minuts in execution. How can We reduce execution time?

          S Offline
          S Offline
          ShilpaKumari
          wrote on last edited by
          #4

          you can reduce execution time by using better management of Indexes

          1 Reply Last reply
          0
          • A Amit K Awsthi

            hi There is problem regarding fetching data from server. In a table ,There is 900000 records and join with other tables. Other tables also store 100000-2 records each. Query is written in Stored Procedure and it take 10 to 15 minuts in execution. How can We reduce execution time?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            And this has nothing to do with C#. Nesxt time, try the General Database forum for this.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            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