Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Really appreciate your site. Really good site for learning what others do when they run into problems. You guy's are great!!!..."

Geography

Where in the world do Tek-Tips members come from?
Glowworm27 (Programmer)
26 Oct 09 19:41
i have a table that has millions of rows. just recently the query we run to look for errors is timing out, i need to run this query before sending the payroll data. Is there as way to reindex this table in hopes to speed this up, so the query can complete? I only have an hour so redesigning the tables now wont work.....
 

George Oakes
CEO & President
COPS Software, Inc.
www.cops2005.com

Programmer & Developer
.Net, WSS 3.0, SQL DBA
Check out this awsome .Net Resource! http://www.learnvisualstudio.net

SantaMufasa (TechnicalUser)
26 Oct 09 20:13
George,

If you simply want to do a fast re-index, then here is your code:

CODE

SQL> alter index s_emp_id_pk rebuild parallel;

Index altered.
Let us know if this takes care of business for you.

santaMufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
"Beware of those that seek to protect you from harm or risk. The cost will be your freedoms and your liberty."

ChrisHunt (Programmer)
27 Oct 09 7:08
So, you've not told us the structure of the table, you've not told us what indexes you have on it, and you've not told us what query you're running on it. And you want us to tell you - within an hour - if it's possible to speed it up?

I'm gonna go with "Yes", because I'm a positive kinda guy, but it could be "No". I hope you find this helpful.

 

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd

Beilstwh (Programmer)
27 Oct 09 14:41
If you give us the select, we can probably suggest ways to speed up the query. Have you paid for the partition option?

Bill
Lead Application Developer
New York State, USA

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close