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. Database & SysAdmin
  3. Database
  4. MSDE server performance question

MSDE server performance question

Scheduled Pinned Locked Moved Database
questiondatabasesysadminperformance
5 Posts 3 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.
  • M Offline
    M Offline
    Member 96
    wrote on last edited by
    #1

    I am experimenting with MSDE and I've found that one long running query on one table causes other (unrelated, different tables, different machines querying) queries to hang waiting for the first query to finish. Is this a "feature" of msde or is there some settings that control how time slices are divvied up for more balance? (Note: there is *nothing* in common between the two queries except the MSDE itself, they are different databases queried from different machines)

    M 1 Reply Last reply
    0
    • M Member 96

      I am experimenting with MSDE and I've found that one long running query on one table causes other (unrelated, different tables, different machines querying) queries to hang waiting for the first query to finish. Is this a "feature" of msde or is there some settings that control how time slices are divvied up for more balance? (Note: there is *nothing* in common between the two queries except the MSDE itself, they are different databases queried from different machines)

      M Offline
      M Offline
      Mark Smithson
      wrote on last edited by
      #2

      It is not clear from you post if the queries execute against different databases. If they don't you may like to consider the following (if, indeed you haven't already). Running two consecutive queries will cause some slowdown, due to the server having to perform additional work. I would make sure that your long running query is not obtaining any locks that may prevent the other query from running. If your queries perform any joins you may find that the joins cause locks. I also remember reading somewhere that SQL Server/MSDE will escalate locks. Perhaps you are getting page locks that are causing the second query to block, as it has data on the same page. Have you tried moving the database(s) to a SQL Server (not MSDE) to see if you still get the same problem? With regards to the performance of MSDE, it will slow down if you have more than '5 concurrent batch workloads'. have a look at the performance section in this page for further information. http://www.microsoft.com/sql/techinfo/development/2000/MSDE2000.asp I hope this helps. Regards Mark Smithson

      M 1 Reply Last reply
      0
      • M Mark Smithson

        It is not clear from you post if the queries execute against different databases. If they don't you may like to consider the following (if, indeed you haven't already). Running two consecutive queries will cause some slowdown, due to the server having to perform additional work. I would make sure that your long running query is not obtaining any locks that may prevent the other query from running. If your queries perform any joins you may find that the joins cause locks. I also remember reading somewhere that SQL Server/MSDE will escalate locks. Perhaps you are getting page locks that are causing the second query to block, as it has data on the same page. Have you tried moving the database(s) to a SQL Server (not MSDE) to see if you still get the same problem? With regards to the performance of MSDE, it will slow down if you have more than '5 concurrent batch workloads'. have a look at the performance section in this page for further information. http://www.microsoft.com/sql/techinfo/development/2000/MSDE2000.asp I hope this helps. Regards Mark Smithson

        M Offline
        M Offline
        Member 96
        wrote on last edited by
        #3

        Yup, different databases entirely. That's what I found wierd. It's a simple thing, two queries on two different databases from two different computers. I'll have a look at that info, thanks. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

        A 1 Reply Last reply
        0
        • M Member 96

          Yup, different databases entirely. That's what I found wierd. It's a simple thing, two queries on two different databases from two different computers. I'll have a look at that info, thanks. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

          A Offline
          A Offline
          andyharman
          wrote on last edited by
          #4

          What do your queries look like? If you are using "Select * Into #TempTable" then I seem to remember that the system catelog tables in the Master database get locked for the duration of the query (unfortunately all of my tuning books are at work). Also, what isolation level are you running the queries at (Commited Read, Repeatable Read, etc.)? Regards Andy

          M 1 Reply Last reply
          0
          • A andyharman

            What do your queries look like? If you are using "Select * Into #TempTable" then I seem to remember that the system catelog tables in the Master database get locked for the duration of the query (unfortunately all of my tuning books are at work). Also, what isolation level are you running the queries at (Commited Read, Repeatable Read, etc.)? Regards Andy

            M Offline
            M Offline
            Member 96
            wrote on last edited by
            #5

            Hello, thanks for the tips, but discovered it was an index problem (as in missing a critical index). MSDE / SQL server sure is dependant on those indexes. The equivalent problem with the exact same sized table and same query in Access would still not have degraded that far. Of course SQL server is much faster than Access once the index is there, but it's interesting how dependant it is on them for performance and how badly performance degrades if a critical one is missing. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

            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