Author |
Topic |
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2010-04-28 : 11:14:51
|
I have a huge database with student information, courses, etc.I want to add quizzes and discussion forumsis it better to keep the discussion forums and quizzes in separate dbsi.e quizzes, courses, forums will be 3 dbsUse foreign keys to link for examplequizzes.quiz.studentid to courses.student.studentidand forums.threads.senderid to courses.student.studentidperformance wise which is bettersarah |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2010-04-28 : 13:48:46
|
Thanks How you are distributing the filegroups indexes and logsI am thinks of putting the database on three filegroupsone for dataone for indexesone for logsis that goodI am using a vmPlease advisesarah |
 |
|
Kristen
Test
22859 Posts |
Posted - 2010-04-28 : 13:52:05
|
I try to avoid multiple databases for the single reason that doing a restore, such that all 3 databases are exactly in sync, is way more aggro than just restoring a single database.forums.threads.senderid where the courses.student.studentid no longer exists (and I don;t think you can enforce a Foreign Key across databases, so you'd wind up having to use triggers ... |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2010-04-28 : 14:05:31
|
sarah,That is fine, but we also separate out tempdb, backups, and the other system databases. On databases that are over 60GB, we use multiple data files. On one of our 1TB databases, we have 21 data files. Here is an example of that environment (each is a mount point):F:\ (system databases, except for tempdb)F:\BackupF:\Data1F:\Data2F:\Data3F:\Data4F:\Data5F:\Data6F:\Data7F:\LogF:\TempdbEach Data mount point has 4 data files. Tempdb has 16 data files since we have 16 CPUs (4 quad-core sockets).We don't currently separate out the indexes.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2010-04-28 : 19:06:55
|
Thanks I am using vm not physical server would that make a difference.Thanks a lot for your helpsarah |
 |
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2010-04-28 : 19:09:14
|
is Keeping the indexes on a separate file group beneficial performance wise.Any recommendation about separating clustered and non clusteredsarah |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|