Click here to Skip to main content
15,887,812 members
Home / Discussions / Database
   

Database

 
QuestionWhat is 'IsMSShipped' ?? Pin
imsathy15-Jan-08 16:51
imsathy15-Jan-08 16:51 
GeneralRe: What is 'IsMSShipped' ?? Pin
Kishore.P15-Jan-08 18:02
Kishore.P15-Jan-08 18:02 
GeneralCreating a View Pin
AAGTHosting15-Jan-08 7:37
AAGTHosting15-Jan-08 7:37 
GeneralRe: Creating a View Pin
Colin Angus Mackay15-Jan-08 9:58
Colin Angus Mackay15-Jan-08 9:58 
GeneralRe: Creating a View Pin
AAGTHosting15-Jan-08 20:16
AAGTHosting15-Jan-08 20:16 
QuestionPerformance question Pin
Kosta Cherry15-Jan-08 7:35
Kosta Cherry15-Jan-08 7:35 
GeneralRe: Performance question Pin
Colin Angus Mackay15-Jan-08 9:49
Colin Angus Mackay15-Jan-08 9:49 
GeneralRe: Performance question Pin
Kosta Cherry15-Jan-08 13:48
Kosta Cherry15-Jan-08 13:48 
Colin Angus Mackay wrote:
here is insufficient information to give any reasonable answer. Anything would be pure guess work. You are best prototyping your situation and seeing which comes out top.

Kosta Cherry wrote:
select ~5000 records (by the key) for each object.


I mean SQL like this:

select * from mytable where ((timekey > X and timekey < Y) AND/OR some other conditions, but they all involve indexed columns only)
The result brings up ~5000 (or so) rows.

If all records are within several tables, I will run that query ~1000 times.
If all records are within one table, I will add into WHERE additional condition like "objectID in (select objectID from other table where ....)", or may be just a join, or whatever other condition.

The problem with modeling will be that selection from many tables will be done from multithreaded application, and I'm not sure how servers will react compared with single-threaded approach when all sits in one table and retrieved with one query; plus, those DB servers should be properly tuned for one approach or another. All of this involves a lot of modeling.

I'm kind of leaning towards the "many tables" approach from the point of maintainability (where I can have each table on different table space or even different server).


Colin Angus Mackay wrote:
Kosta Cherry wrote:
I have each object inside it's own table



What do you mean by "object"?


"Object" here is just named collection of millions of similar records - like, for example, file is collection of bytes, or picture is collection of pixels.


Colin Angus Mackay wrote:
Kosta Cherry wrote:
I don't care about write performance.



Have you considered using indexes rather than splitting up tables? (indexes slow down writes but can improve read performance if used correctly)



Of course I did. I just don't know which way it'll work faster. On one hand, having all records in one table increases Btree+ index depth by 1-2 levels (depending on number of keys in the leaf), which increases seek time; on another hand, having records in different tables requires additional time for parsing (1000 queries instead of 1); so it's a hard to say what will be faster in the end.
GeneralRe: Performance question Pin
Colin Angus Mackay15-Jan-08 14:19
Colin Angus Mackay15-Jan-08 14:19 
GeneralRe: Performance question Pin
Paul Conrad19-Jan-08 7:07
professionalPaul Conrad19-Jan-08 7:07 
Generalcreating table adapter queries using code Pin
Cory Kimble15-Jan-08 7:10
Cory Kimble15-Jan-08 7:10 
GeneralRe: creating table adapter queries using code Pin
Kishore.P15-Jan-08 18:22
Kishore.P15-Jan-08 18:22 
GeneralRe: creating table adapter queries using code Pin
Cory Kimble16-Jan-08 4:00
Cory Kimble16-Jan-08 4:00 
GeneralPad Left Access SQL Pin
Kschuler15-Jan-08 3:37
Kschuler15-Jan-08 3:37 
GeneralRe: Pad Left Access SQL Pin
andyharman15-Jan-08 4:00
professionalandyharman15-Jan-08 4:00 
GeneralRe: Pad Left Access SQL Pin
Kschuler15-Jan-08 4:12
Kschuler15-Jan-08 4:12 
GeneralRe: Pad Left Access SQL Pin
GuyThiebaut15-Jan-08 10:33
professionalGuyThiebaut15-Jan-08 10:33 
QuestionHow to get the PK value within an update trigger Pin
ScottM115-Jan-08 0:45
ScottM115-Jan-08 0:45 
GeneralRe: How to get the PK value within an update trigger Pin
Pete O'Hanlon15-Jan-08 1:36
mvePete O'Hanlon15-Jan-08 1:36 
GeneralRe: How to get the PK value within an update trigger Pin
ScottM117-Jan-08 1:22
ScottM117-Jan-08 1:22 
GeneralChange destination column names in Snapshot Replication Pin
BillyGoatGruff14-Jan-08 5:58
BillyGoatGruff14-Jan-08 5:58 
GeneralRe: Change destination column names in Snapshot Replication Pin
Paul Conrad19-Jan-08 7:09
professionalPaul Conrad19-Jan-08 7:09 
GeneralRemote Replication Error Pin
sami_pak13-Jan-08 19:55
sami_pak13-Jan-08 19:55 
GeneralRe: Remote Replication Error Pin
Hesham Amin14-Jan-08 6:40
Hesham Amin14-Jan-08 6:40 
Generalcomparing date time values in MSAccess Pin
Member 305788713-Jan-08 19:16
Member 305788713-Jan-08 19:16 

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.