Viewing 15 posts - 46 through 60 (of 542 total)
What are the possible solutions for "ASYNC_NETWORK_IO" wait. When I tried to execute the query its returning results in 4-5 secs. But from application it taking ages.. eventually we are...
October 3, 2023 at 4:49 pm
most of the code looks like someone used to Oracle that was moved to work with SQL Server - in Oracle world majority of things are case sensitive -...
October 3, 2023 at 4:32 pm
Hi frederico/Jeff Moden/Jeffrey,
I don't know how to ask for help but asking. This is eating my brain. Please forgive me.
We see these kind of poorly written queries every now and...
October 3, 2023 at 3:23 pm
so either the code is wrong or your statement is wrong (both me and Jeff think its the code)
The developer whom I spoke to mentioned that they...
October 3, 2023 at 3:13 pm
Thanks Jeffrey. Other thing I was looking for indexing and also to remove the UPPER() function. This database is not case-sentive database. I am not sure, why they are using...
October 3, 2023 at 10:35 am
Thank you Ant for the suggestions.
October 3, 2023 at 10:31 am
I also see, dev team is using DISTINCT operator as a common practice. Is there any proper ways to re-write to the queries to avoid the usage of distinct operator...
October 2, 2023 at 8:41 am
You said in your narrative in your original post that "it reads last 30 mins of data from the tables involved" and yet ALL of your queries...
October 2, 2023 at 8:33 am
Also, they are using a table variable @ResultSet . I believe estimated rows will be always =1 . Replacing it with a temp table is better option?
October 2, 2023 at 8:30 am
One more question, I have in my mind, usage (NOLOCK) is any use or shall we ask developer to remove it. RCSI is enabled on the user database. do you...
October 2, 2023 at 8:26 am
before we can even suggest anything else...
1 - WHY are they returning 40 Million rows on a function call? what purpose does this accomplish?
ask the devs what is this...
October 2, 2023 at 8:24 am
RCSI is turned ON , on the database.
Regards,
Sam
October 1, 2023 at 9:47 am
--LOCKS on SELECT
<Database name="CMX_ORS">
<Locks>
<Lock request_mode="S" request_status="GRANT" request_count="1" />
</Locks>
<Objects>
<Object name="(null)">
...
October 1, 2023 at 9:41 am
One more observation, on that database RCSI is enabled. Is there any good reason for using (NOLOCK) hint? I feel, since it is a SELECT it should get the copy...
October 1, 2023 at 8:55 am
can you also get a ACTUAL execution plan of doing those sqls
and there is some duplication of access to table C_B_PARTY
take following snippet.
take following snippet.
first INNER...
October 1, 2023 at 8:45 am
Viewing 15 posts - 46 through 60 (of 542 total)