Which mysql query is best to use ? In one method I can give an id to each url , in the other method I can put sameĀ url in each row
-
I am making a bookmarking site which is the best method? In first method I have to use MySQL JOIN which makes more traffic .But memory will be saved In second method I have to put url in each row which makes use of lot of memory But the query Speed is more as I dont use JOIN or only query will be enough to do
-
Answer:
Your question is a bit unclear in terms of what you mean by "using memory" and the different table schemas you have in mind. In general, it sounds like your question is about normalizing vs. denormalizing data. The answer is going to be application-specific. Look at how often you may need to make use of the data in a normal form (like if other data is connected to it, or for reporting) versus how often you could get by just using the data in a denormalized form. Generally, the benefit of denormalizing data is in specific high-traffic situations where the performance benefit outweighs the other drawbacks of using this database design. However, you may also want to look closely at caching, if the data does not change a lot (many more reads than writes) as that can work well even with normalized data.
Justin Fidler at Quora Visit the source
Other answers
Many years ago I was taught to normalise a relational database design to third normal form, and then denormalise until it worked.
Paul Bennett
Related Q & A:
- How I can unit test Dapper Extension Method?Best solution by Stack Overflow
- Can anyone give me an idea about what i can doing in the holiday?traveling to Brazil or Paris or London?Best solution by Yahoo! Answers
- Which r the sites that we can put our photos in the sites for other ppl to vote us?Best solution by Yahoo! Answers
- Which one should I choose genetic engineering or chemical engineering?Best solution by Yahoo! Answers
- Which calling card is the best to use to call to Ecuador?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.