Viewing 15 posts - 76 through 90 (of 390 total)
The query runs in approx. 700 ms with Maxdop 8 and in about 5 seconds with Maxdop 1.
I need to force the App plan to use Maxdop 8 instead of...
May 17, 2013 at 8:03 am
When i use static SQL it is 800% slower, that is why i am using dynamic SQL.
October 2, 2012 at 4:13 pm
Here is the whole SP.
Thanks
USE [JobPortalIAN]
GO
/****** Object: StoredProcedure [dbo].[GetAllResumesSearchedDynamicQuery] Script Date: 10/2/2012 4:40:05 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- ============================================= ...
October 2, 2012 at 2:50 pm
Thanks
July 25, 2012 at 8:43 am
Sean,
The IF statement works fine like this:
if (@Degree <> 0)
Begin
set @QueryCondition = @QueryCondition + ' and p.Degree1id =' + cast(@Degree as varchar(10)) +
' or p.Degree2id ='...
July 6, 2012 at 9:10 am
Sean,
Thanks for you help!
A case of 'you can't see the woods, for the trees!'
Ian
July 6, 2012 at 3:39 am
Sample Profiles table:
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Profiles](
[Degree1id] [int] NULL,
[Degree2id] [int] NULL,
[Degree3id] [int] NULL,
CONSTRAINT [PK_profiles] PRIMARY KEY CLUSTERED
(
[Idnew] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS...
July 5, 2012 at 4:12 pm
I got the syntax to work, but the results are incorrect.
if (@Degree <> 0)
Begin
if (' p.Degree1id ' > ' p.Degree2id ' and ' p.Degree1id ' > ' p.Degree3id ') ...
July 5, 2012 at 2:00 pm
Basically i want to do this, but the syntax is wrong for p.Degree1id, p.Degree2id and p.Degree3id. I keep getting a 'multipart identifier could not be bound' error.
if (@Degree <>...
July 5, 2012 at 1:47 pm
I want to first test if the @Degree <> 0
then get the highest degree a candidate has obtained.
So i want to use something similar to the Select CASE logic, but...
July 5, 2012 at 1:34 pm
Lynn Pettis (6/20/2012)
And that is just a brief, 100,000 foot view. There is much more that could be discussed.
Thanks 🙂
June 20, 2012 at 2:39 pm
After creating a column in the Profiles table for DocContent and removing the last Join statement, my query searching 3 years of data now takes 0.6 seconds !
Effectively I...
June 20, 2012 at 1:56 pm
I update statistics and run DBCC Freeproccache before any testing.
The removal of each Inner join seems to gain about one second in query performance, so i was wondering if removing...
June 20, 2012 at 10:36 am
Sean,
The query returns 9 rows, with around 10 fields.
What is frustrating is that the more i follow the correct "rules", the more headaches i get 🙁
Regards
Ian
June 20, 2012 at 9:15 am
Sean,
The Joins were slower than the subqueries, and actually adding the recentwages and recentjobtitle fields back to the profiles table, gained 30% in performance! That is just something i did...
June 20, 2012 at 8:50 am
Viewing 15 posts - 76 through 90 (of 390 total)