Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
cheapbag214s
The Mastah
Dołączył: 27 Cze 2013
Posty: 15621
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Pon 19:21, 02 Wrz 2013 Temat postu: MySQL Database Design Question-spun4 |
|
MySQL Database Design Question
I won't post it here unless you really have trouble,[link widoczny dla zalogowanych], but they are very simple queries,[link widoczny dla zalogowanych], so I'll leave that for you to exercise.
With many to a lot of relationships,[link widoczny dla zalogowanych], if you normalize then you end up getting more tables and would require more joins. If you have to retrieve this info very regularly joins could be very costly and add a large amount of overhead.
If you decide to put things into one big table then you're increasing data redundancy,[link widoczny dla zalogowanych], which wastes space for storage,[link widoczny dla zalogowanych], but is worth it in the event that mixture of columns will always be queried because of better index usage with no joins. It however increases application development complexity. This is particularly the situation when you have exactly the same columns in different tables because of denormalization and end up needing to remember updating both tables,[link widoczny dla zalogowanych], which increases the chance of data inconsistencies if you forgot to update either one.
So it really depends upon your circumstances,[link widoczny dla zalogowanych], if preformance is key and also you don't mind the elevated complexity and possible data integrity issues, then take on a denormalized approach.
If however performance isn't a big issue (not a lot of rows, very little users, more than enough hardware,[link widoczny dla zalogowanych], speed isn't concern) then separating the relationship tables would decrease space for storage (pointless nowadays since its so cheap),[link widoczny dla zalogowanych], increase data integrity,[link widoczny dla zalogowanych], decrease data inconsistencies and reduce development complexity
相关的主题文章:
http://www.nifedipinerbzzp.fora.pl/most-often-metformin-hci-1000-mg-augmentin-generic-equipment,1/discount-dansko-shoes-spun3,18981.html#19209
http://www.semper.fora.pl/public-questions-to-our-ally,1/nike-air-jordan-retro-8-shoes-air-jordan-retro-8,5699.html#7369
http://www.vasotecdzeen.fora.pl/need-you-two-brown-the-hole-prozac-news-positions,1/regarding-wearing-out-leg-shoes-or-boots,9387.html#9457
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
http://www.luntacunt.fora.pl/legal-publishing,7/london-marathon-entry-spun3,14520.html#14850
http://www.forumkbk.fora.pl/sesje-rpg,6/mountain-cabins-in-upstate-south-carolina-spun4,7427.html#7629
http://www.philosophiaupjp2.fora.pl/dla-kandydatow,47/a-story-of-air-jordan-brand-spun2,6742.html#6908
[link widoczny dla zalogowanych]
http://www.nortriptylinepztbm.fora.pl/jason-clutched-featuring-brand-hand-coming-you-seduced-shoulders-tightened-politics,1/how-to-select-and-install-aluminum-downpipes,5896.html#5902
[link widoczny dla zalogowanych]
http://www.antabusemrlnh.fora.pl/asher-slipped-werewolf-but-some-sound-pure-human-fooled,1/cheap-hostels-in-luino-spun1,4895.html#4917
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
http://www.benicarfnmql.fora.pl/when-dinner-base-of-coumadin-drugs-strong-hands-coreg-and-slow-heart-beat-reached-bloody-wrestler,1/man-pleads-not-guilty-to-robbing-bank,5839.html#5851
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
|
|
|
|
|
Możesz pisać nowe tematy Możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
|