Viewing 15 posts - 16 through 30 (of 33 total)
Then why is the performance fast if i go directly against the employer table instead of view.
For e.g.
select * from Myview where display like '%aarp%'
returns 26706 rows in 51 sec
select...
March 28, 2013 at 2:13 pm
Thanks for all the suggestions.
Changing the date condition did not help improve the performance.
Here are the DDL and index details of the table
Table Case1
------------
CaseID varchar(15)
,Emp_ID varchar(15)
,Segment varchar(10)
,dischargedt date
,discharge_entered_dt date
Indexes...
March 28, 2013 at 1:49 pm
Wildcard search needs to be done. If I do a value% it will do BeginWith.
March 28, 2013 at 1:39 pm
discharged_entered is a date field.
March 28, 2013 at 12:34 pm
So I created indexed views and it is working great when data is grouped by year, month or quarter.
here is my indexed view.
SELECT
a.MinorMkt as MinorMkt
...
March 12, 2013 at 3:12 pm
I created a indexed view as suggested earlier and need help with that.
Here is my indexed view.
ALTER VIEW dbo.vFact WITH SCHEMABINDING
AS
SELECT a.MinorMkt
, SUM(ISNULL(admits,0)) AS...
March 8, 2013 at 5:30 pm
Sorry i missed that. Here you go..
CREATE TABLE [dbo].[MinorMkt](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Region] [varchar](20) NULL,
[MinorMkt] [varchar](350) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Hosp_UID_Xref](
[UID_v3] [varchar](20) NOT NULL,
[Prov_Key] [varchar](25) NOT NULL,
[HospName] [varchar](100)...
March 7, 2013 at 12:44 pm
Guys - If I run the query without any function it still takes a long time to execute. So use of function is not the issue here.
Any other suggestions?
Thanks
KK
March 7, 2013 at 10:44 am
Following is the code for the function. For the previous query i had stripped this function and was directly running the IN clause. I did not notice any difference in...
March 6, 2013 at 3:03 pm
To give you an idea of the issue, if I run this query it takes 39 sec. All the required indexes are in place.
I have also attached the query plan
SELECT...
March 6, 2013 at 2:58 pm
I am sorry for not posting the performance problem in the recommended way. Please see below the detailed information
-- This is the main table it contains around 6 million rows.
--...
March 6, 2013 at 11:35 am
Yes, there is a stored procedure that build dynamic sql. This query above is just a PRINT of the sql that gets executed.
If you look at the query, there are...
March 5, 2013 at 1:31 pm
to give you an idea of type of queries that are being run
SELECT minormkt
,Sum(admits) as 'Total Admits' ,Sum([days]) as 'Total Days' , sum(OppAdm) as 'Opp Adm'
...
March 5, 2013 at 1:21 pm
Viewing 15 posts - 16 through 30 (of 33 total)