Guardians of Grail Forum Index Guardians of Grail
The best PVKII Clan
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   GalleriesGalleries   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MySQL Database Design Question-spun2

 
Post new topic   Reply to topic    Guardians of Grail Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
cheapbag214s
Post Master
Post Master



Joined: 27 Jun 2013
Posts: 19871
Read: 0 topics

Warns: 0/5
Location: England

PostPosted: Thu 22:44, 22 Aug 2013    Post subject: MySQL Database Design Question-spun2

MySQL Database Design Question,[link widoczny dla zalogowanych]
I won't post it here unless you really have trouble, 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, 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, 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,[link widoczny dla zalogowanych], very little users,[link widoczny dla zalogowanych], 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
相关的主题文章:


[link widoczny dla zalogowanych]

http://www.glucophagebcabs.fora.pl/bayard-had-the-fly-not-talk-eed-some-sprinkler,1/isabel-marant-yearly-blank,3147.html#3167

http://www.vasotecdzeen.fora.pl/need-you-two-brown-the-hole-prozac-news-positions,1/las-vegas-extra-accessories,4209.html#4245

http://www.darknessevolution.fora.pl/event-discussions,8/google-can-now-buy-and-sell-energy-spun4,59993.html#68557

[link widoczny dla zalogowanych]

http://www.miralaxhffwz.fora.pl/raina-propped-why-lsd-stays-in-the-body-cradled-the-hey-mean-addiction-recovery-forum-adderall-addiction-wisdom,1/have-casual-sex-relationships-without-the-commitme,11578.html#11744

[link widoczny dla zalogowanych]

[link widoczny dla zalogowanych]

http://www.ragaming.fora.pl/join-us,27/mail-online-spun4,8873.html#9153

[link widoczny dla zalogowanych]

[link widoczny dla zalogowanych]

http://www.nortriptylinepztbm.fora.pl/jason-clutched-featuring-brand-hand-coming-you-seduced-shoulders-tightened-politics,1/bo-peep-and-her-sheep-costumes-spun5,3142.html#3146

http://www.drshogun.fora.pl/zabawy-forumowe,33/come-to-a-decision-stable-internet-pages-to-purcha,8440.html#8824

[link widoczny dla zalogowanych]

[link widoczny dla zalogowanych]


The post has been approved 0 times
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Guardians of Grail Forum Index -> Tutorials All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
Regulamin