Click here to Skip to main content
15,895,667 members

Comments by FastEvo8 (Top 8 by date)

FastEvo8 8-Dec-11 23:08pm View    
I am surprised to hear that it takes 3-4 minutes to retrieve one record with only 30-40k records. I am starting to think that you might have other issues on your server that are slowing down your query.
Why don't you create the index for the column name?
Did you check the query plan?
Are the data types of the emp_ID fields the same?
Do you have a one to one or a one to many relationship?
FastEvo8 8-Dec-11 17:01pm View    
I do not agree.
the FK relationship is used for keeping the referential integrity in the database and has nothing to do with indexing. As a matter of fact it may slow down inserts since the DB engine will check if the new values exists in the parent table (check the query plan and you will see it),
FastEvo8 8-Dec-11 13:56pm View    
It is very difficult to troubleshoot your performance issue with the limited info you are supplying.
What do you mean by "Huge table"...do you have a 1 billion records?
Indexes are meant to speed up searches, if you do no have one you might want to consider to add it.
What is the query you are running?
Please try to provide more details.
FastEvo8 6-Dec-11 13:59pm View    
Where are @PrefijoPapel AND @FolioPapel coming from?
Are they in a table?
FastEvo8 28-Oct-11 9:25am View    
I totally agree, "Select *" needs to be avoided.
Selecting only the data you need is your first performance improvement hint!