Monday, March 26, 2012
number of tempdb files?
configure in order to reduce schema lock contention? 8, or 16? I see 16
processors on the Task Manager. According to some articles dual-core CPU is
considered to be two CPUs. What about hyper-threading?
Thanks,
Lijun1) Consider (and test) turning off hyperthreading.
2) I would go with either 4 or 8 files for your tempdb, one per each true
cpu or one per core. I have seen guidance for one per cpu, but don't know
how the shared cache would really play out with dual core. Gut feeling is 4
would be best.
--
TheSQLGuru
President
Indicium Resources, Inc.
"Lijun Zhang" <sonyzhang00@.yahoo.com> wrote in message
news:u5ijH7phHHA.4904@.TK2MSFTNGP05.phx.gbl...
> On a 4 dual core, hyper threading server, how many tempdb files I should
> configure in order to reduce schema lock contention? 8, or 16? I see 16
> processors on the Task Manager. According to some articles dual-core CPU
> is
> considered to be two CPUs. What about hyper-threading?
> Thanks,
> Lijun
>
number of tempdb files?
configure in order to reduce schema lock contention? 8, or 16? I see 16
processors on the Task Manager. According to some articles dual-core CPU is
considered to be two CPUs. What about hyper-threading?
Thanks,
Lijun1) Consider (and test) turning off hyperthreading.
2) I would go with either 4 or 8 files for your tempdb, one per each true
cpu or one per core. I have seen guidance for one per cpu, but don't know
how the shared cache would really play out with dual core. Gut feeling is 4
would be best.
TheSQLGuru
President
Indicium Resources, Inc.
"Lijun Zhang" <sonyzhang00@.yahoo.com> wrote in message
news:u5ijH7phHHA.4904@.TK2MSFTNGP05.phx.gbl...
> On a 4 dual core, hyper threading server, how many tempdb files I should
> configure in order to reduce schema lock contention? 8, or 16? I see 16
> processors on the Task Manager. According to some articles dual-core CPU
> is
> considered to be two CPUs. What about hyper-threading?
> Thanks,
> Lijun
>
number of tempdb files?
configure in order to reduce schema lock contention? 8, or 16? I see 16
processors on the Task Manager. According to some articles dual-core CPU is
considered to be two CPUs. What about hyper-threading?
Thanks,
Lijun
1) Consider (and test) turning off hyperthreading.
2) I would go with either 4 or 8 files for your tempdb, one per each true
cpu or one per core. I have seen guidance for one per cpu, but don't know
how the shared cache would really play out with dual core. Gut feeling is 4
would be best.
TheSQLGuru
President
Indicium Resources, Inc.
"Lijun Zhang" <sonyzhang00@.yahoo.com> wrote in message
news:u5ijH7phHHA.4904@.TK2MSFTNGP05.phx.gbl...
> On a 4 dual core, hyper threading server, how many tempdb files I should
> configure in order to reduce schema lock contention? 8, or 16? I see 16
> processors on the Task Manager. According to some articles dual-core CPU
> is
> considered to be two CPUs. What about hyper-threading?
> Thanks,
> Lijun
>
sql
Wednesday, March 21, 2012
Number of foreign keys
use.
In a general relational schema design perspective how many foreign keys a
table shall have?
If I have large number of foreign keys what anamolies it will lead to?
Is this crucial to identify all the foriegn key relationships for a table?
VinodhOn Thu, 2 Dec 2004 13:06:57 +0530, Vinodh Kumar P wrote:
>I understand the number of foreign keys allowed is restricted by the DBMS I
>use.
Hi Vinodh,
For SQL Server 2000 (and 7.0), this limit is 253 foreign key table
references per table. I can't imagine any serious application ever
exceeding this limit.
>In a general relational schema design perspective how many foreign keys a
>table shall have?
Depends. Some tables will have only one or none, other tables might have
more (sometimes evemn much more) foreign keys. There is no general answer,
just as there is no single "one-size-fits-all" database design. That's why
requirements analysis and normalization are the most important stteps in
database design.
>If I have large number of foreign keys what anamolies it will lead to?
None - fooreign keys PREVENT anomalies, as the database will check all
changes to the data to make sure the constraint is not violated. This will
slow down the processing of insert, update and delete statements, though
not by much (if you use proper indexes).
>Is this crucial to identify all the foriegn key relationships for a table?
Yes. Unless you like cleaning up corrupted data. <g
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)