Advertisement

01.31.2006 at 12:22PM PST, ID: 21717546
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Database design advice needed...

Asked by mjcoyne in MySQL Server

Tags: , ,

I am new to MySQL, but after reading for a weekend, it is apparent to me that design of the database is a critical step.

I have a Folding@Home team of about 500 members.  Each member's stats include the member's name, the points accrued, the work units completed, the member's rank within the team, and the member's rank in the world.

A stats update is issued eight times a day (every three hours) by the F@H group at Stanford University as a text file, which I can retrieve and deal with using Perl (if you're interested, the file I'll be retrieving is at http://vspx27.stanford.edu/teamstats/team63.txt).  I've been tracking stats on this team for several years now, and I maintain a website of stats about each member, but I've been using flat-file (text) databases, and I'm exploring a switch over to a MySQL based system.

The questions I will ask of the database (for each member, and separately for the team as a whole -- the team aggregate stats are provided by Stanford along with the individual member stats, thus the team is sort of like a super member, but should be maintained separately) include such things as :

1. Each member's current points awarded, work units completed, team and world ranks.

2. Each member's change in points total, work units total and team and world ranks over time -- say per day, per week and per month, thus I'll need to retain historical data spanning about 30 days for each member (240 updates at 8 per day).

3.  Whether (and when) a member crosses any of a number of thresholds (currently, we're using 1,000, 2,500, 5,000, 10,000, 20,000, 50,000, 100,000, 250,000, 500,000, 750,000, and 1,000,000 points; thus when a member's point level is >= 1,000 and < 2,500, he or she is a member of the "1,000 points club".  When he/she crosses the 2,500 point level, they become a member of the "2,500 points club" and cease membership in the 1,000 point club, etc.).

4.  Several date/time related queries, such as when a member joins, when his point total last changed (many team members participate for a while then stop so, even though they continue to appear on the team list, their point total doesn't change -- I need to be able to differentiate "active" members from "inactive" members), when a member achieves the thresholds outlined above, the date/time of the latest stats update, and the like.

My question is how to best design such a database?  Put all member stats in a single table keyed on member name, and have a separate table for each "club"?  Have separate tables for member's points, work units, and ranks, etc., all linked by member name?  Maintain current stats and historical stats separately or together?

I'm fairly confident I can work out the Perl/MySQL programming needed to retrieve the answers to such questions if the database is correctly designed.  My feeling is that getting the database design correct from the start will save me a lot of headaches later on, but I have no experience to draw on.  Any suggestions will be greatly appreciated...

Mike
Start Free Trial
[+][-]01.31.2006 at 12:37PM PST, ID: 15837382

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.31.2006 at 01:28PM PST, ID: 15837910

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.31.2006 at 02:02PM PST, ID: 15838293

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.31.2006 at 02:02PM PST, ID: 15838298

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.31.2006 at 02:22PM PST, ID: 15838468

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.31.2006 at 09:32PM PST, ID: 15840754

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2006 at 11:12AM PST, ID: 15846575

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.23.2006 at 01:34PM PST, ID: 16033537

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02.25.2006 at 06:25AM PST, ID: 16045342

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2006 at 09:13PM PST, ID: 16047991

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MySQL Server
Tags: mysql, database, design
Sign Up Now!
Solution Provided By: todd_farmer
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.26.2006 at 06:01PM PST, ID: 16051978

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2006 at 06:17PM PST, ID: 16052041

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42