Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

T-SQL: Need a database plan to mine a pretty big Log table

14 million records is not that big, but is too large for me to do "what if" queries without such a long response time, I lose my train of thought.

 I need to create some form of order on the data to support my data mining without changing the db schema. So I imagine I could plan out a night job that would run:

- Index on the Log table for better performance
- Create one or more tables which my scripts will populate
- Make one or more scripts that will populate the tables

Does this concept make sense?

Suggestions?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

Truncate which table? Why would any data from a prior query need to be removed? Instead, why not run the job an midnight and pull only yesterday's new additions to the Log table?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks