Why does the following simple query against an SqlServer2005 table in an ASPNET2 website returning less than 10 rows:
SELECT link_text, idnum, ts FROM bd_content WHERE parent_id = 0 AND idnum <> 1
take no time at all (less than 1 second)
yet the following sorted query against the same table (same number of returned rows):
SELECT link_text, idnum, ts FROM bd_content WHERE parent_id = 0 AND idnum <> 1 ORDER BY seq_num
takes almost 20 seconds?
- Mark 2 1268
Is the response time identical from Query Analyzer or the new IDE (SQL
Workbench - is it still called that?)
"Mark Olbert" <Ch*********@ne wsgroups.nospam > wrote in message
news:69******** *************** *********@4ax.c om... Why does the following simple query against an SqlServer2005 table in an ASPNET2 website returning less than 10 rows:
SELECT link_text, idnum, ts FROM bd_content WHERE parent_id = 0 AND idnum <> 1
take no time at all (less than 1 second)
yet the following sorted query against the same table (same number of returned rows):
SELECT link_text, idnum, ts FROM bd_content WHERE parent_id = 0 AND idnum <> 1 ORDER BY seq_num
takes almost 20 seconds?
- Mark
For those who might run into this same slow sorting behavior:
I'm not sure exactly what I did to "cure" it, but fiddling around with the configuration of SqlServer2005 services on my server, and
with the "surface area" management utility, apparently resolved the problem (I didn't do anything to the installation on my client
machine where the problem appeared).
- Mark This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James Aguilar |
last post by:
Hey all,
I have a bit of code that implements a suffix array, which is essentially an
array of iterators or indexes into a string. The array starts out like this
String: ABAB
Array: 0123
But then gets sorted
|
by: sherkozmo |
last post by:
SQL2000 - AccessXP
I built an adp file with a stored procedure from SQL as follows:
SELECT * FROM
Z_mis_sjk_job_code_access
WHERE job_code=@JobCode
UNION ALL
SELECT * FROM
Z_mis_sjk_job_code_access_mkey
WHERE job_code=@JobCode
ORDER BY app_only, submenu_number, menu_routine_number,
|
by: Stefan |
last post by:
The following query gives me the right output, but takes almost 10
minutes to run...
Any obvious things that I can improve on? I know this is diffuclt to
do without realizign what I'm trying to do... I am not sure how to
make it run faster.
Thanks.
select * from tblCobol As C
where VersionNum =
|
by: diffuser78 |
last post by:
I have just started to learn python. Some said that its slow. Can
somebody pin point the issue.
Thans
|
by: Vinayagamurthy |
last post by:
If it is possiable to send an SMS from SQLServer2005 to MobilePhone using any extended stored Procedures. Otherwise we can able to create any Stored Procedures for sending sms.
| |
by: red_valsen |
last post by:
I have a default installation of SQLServer2000 on a host running
Win2003. I want to install SQLServer2005 on the same machine, but
preserve the original SQLServer2000 installation. How do I do this --
install into new directory? new directory and named instance? just
new named instance? What stumbling blocks could I run into?
|
by: Mark Olbert |
last post by:
I'm looking for help in getting the Transfer Sql Server Objects task to work. The goal is to transfer the tables, views, sprocs,
udfs from a SqlServer 2000 database to a Sql Server 2005 database.
When I set the task up and run it, it fails complaining about an invalid foreign key relation. The relation in question is valid,
and used in the current production environment under SS2000, so I think the real problem is something else. I've seen...
|
by: SeeSharp Bint |
last post by:
Hi,
Am i able to do the datagrid equivalent of beginupdate endupdate while i'm
sorting rows in a datagrid please. I dont want it redrawing everything while
I do the work as its so slow.
thanks
|
by: yasinirshad |
last post by:
HI,
Can anyone tel me How to copy data from a table in one database to a table in another database using sqlserver2005. Thanks in advance.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |