Click here to Skip to main content
15,923,006 members
Home / Discussions / Database
   

Database

 
QuestionTransactions between layers. Pin
Luis C. Lopez24-Oct-06 9:22
Luis C. Lopez24-Oct-06 9:22 
AnswerRe: Transactions between layers. Pin
Colin Angus Mackay24-Oct-06 22:31
Colin Angus Mackay24-Oct-06 22:31 
AnswerRe: Transactions between layers. Pin
Luis C. Lopez25-Oct-06 6:05
Luis C. Lopez25-Oct-06 6:05 
QuestionSearch Security Pin
tmoney10124-Oct-06 2:17
tmoney10124-Oct-06 2:17 
AnswerRe: Search Security Pin
Colin Angus Mackay24-Oct-06 3:38
Colin Angus Mackay24-Oct-06 3:38 
AnswerRe: Search Security Pin
Pete O'Hanlon26-Oct-06 9:05
mvePete O'Hanlon26-Oct-06 9:05 
QuestionOne large table vs. several smaller tables Pin
Joe Smith IX24-Oct-06 0:25
Joe Smith IX24-Oct-06 0:25 
AnswerRe: One large table vs. several smaller tables Pin
Jim Conigliaro24-Oct-06 4:48
Jim Conigliaro24-Oct-06 4:48 
If the tables are indexed, then as your table grows, the insert (and sometimes the edit) operations tend to slow down - this is because the database needs to manage the indexes during the insert. However, a million rows (on a properly indexed table) should not be a problem for a select statement. The referse holds true on a non-indexed table - inserts tend to remain fast but select operations slow down.

There are a couple of design patterns that are applicable. One is to create multiple tables, one per month, one per year, whatever is necessary. This keeps the indivual table size small. You would then create a VIEW to represents a union of all your tables so your select statements always pull from a single entity. Another design pattern is to keep all of your data in a single, indexed, table but have a separate, non indexed, table that acts as an insert queue. New data gets inserted into the queue and that data is moved into the permenant table on a nightly basis (inerted into permenant table, delete from queue). You would still need a VIEW to provided a union between your queue and the permenant table, but you don't need to update the view as new tables are added.


GeneralRe: One large table vs. several smaller tables Pin
Joe Smith IX25-Oct-06 8:49
Joe Smith IX25-Oct-06 8:49 
GeneralRe: One large table vs. several smaller tables Pin
Jim Conigliaro25-Oct-06 9:33
Jim Conigliaro25-Oct-06 9:33 
GeneralRe: One large table vs. several smaller tables Pin
Joe Smith IX26-Oct-06 2:21
Joe Smith IX26-Oct-06 2:21 
GeneralRe: One large table vs. several smaller tables Pin
Jim Conigliaro26-Oct-06 2:33
Jim Conigliaro26-Oct-06 2:33 
QuestionGathering Data and Calculating??? Pin
nit11523-Oct-06 14:50
nit11523-Oct-06 14:50 
AnswerRe: Gathering Data and Calculating??? Pin
Edbert P23-Oct-06 15:01
Edbert P23-Oct-06 15:01 
AnswerRe: Gathering Data and Calculating??? Pin
Rob Graham23-Oct-06 15:03
Rob Graham23-Oct-06 15:03 
GeneralI forgot to mention..... Pin
nit11523-Oct-06 17:01
nit11523-Oct-06 17:01 
AnswerRe: Gathering Data and Calculating??? Pin
Jerry Hammond25-Oct-06 16:50
Jerry Hammond25-Oct-06 16:50 
QuestionLooking for a good Data migration solution Pin
sludgenz23-Oct-06 12:34
sludgenz23-Oct-06 12:34 
AnswerRe: Looking for a good Data migration solution Pin
Edbert P23-Oct-06 15:03
Edbert P23-Oct-06 15:03 
GeneralRe: Looking for a good Data migration solution Pin
sludgenz23-Oct-06 15:27
sludgenz23-Oct-06 15:27 
QuestionOpen XML and DateTime [modified] Pin
GaryWoodfine 23-Oct-06 11:55
professionalGaryWoodfine 23-Oct-06 11:55 
Questionhow to add row to the result query Pin
cellardoor071623-Oct-06 3:46
cellardoor071623-Oct-06 3:46 
AnswerRe: how to add row to the result query Pin
Elina Blank23-Oct-06 3:57
sitebuilderElina Blank23-Oct-06 3:57 
AnswerRe: how to add row to the result query Pin
Eric Dahlvang23-Oct-06 4:04
Eric Dahlvang23-Oct-06 4:04 
GeneralRe: how to add row to the result query Pin
cellardoor071623-Oct-06 4:37
cellardoor071623-Oct-06 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.