myfreeforum.org Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
For an excellent guide to using your myfreeforum forum, you can visit
howtodoit
The howtodoit "readonly" forum provides answers and walkthroughs for all common questions.
  • Welcome
  • Guest


myfreefriends.org - starting the database

 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs
Site Admin
Site Admin
Joined: 22 May 2005
Posts: 19280

View user's profile Send private message Send e-mail

A Blog by - admin (no pm's please)



Virtual Cash: 42230
Any database schema needs a lot of thought if it is to be optimal. I have been reading a fair bit on how the various versions of phpbb have wavered backwards and forwards on some of the issues!

With myfreefriends though, there is clearly a flaw in using either the joomla/phpbb2 approach to storing user information. Both these products have essentially one record per user, so that record is a big one.

This is probably not entirely optimal for a forum, but at least on a forum the number of users is limited and xprofile fields not withstanding there is only a limited amount of information we store on a user.

A social networking type system is of a different order of magnitude, we would expect to have hundreds of thousands of users and we would expect users to store a considerable amount of profile information.

Hence the idea will be to have a lean mean user record joining to perhaps a few other user record types that will only be loaded when that information is actually needed.


_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Author Message
admin (no pm's please)
Site Admin
Site Admin

Virtual Cash: 42230

Joined: 22 May 2005
Posts: 19280

Add Karma

rated by 157 members
Add Comment
Show Comments

online/offline
PostPosted: Fri Oct 05, 2007 6:24 pm    Post subject: Reply with quote

The whole messaging issue requires some interesting choices storage wise.

Some of those choices are bad, like for example a choice of one myasm table per user for their messages has certain attractions, like for example only loading data for the user when they are online and active. Where this breaks down is myasm tables are stored one to a file and all files in a single directory, you could end up with a million files in a directory quite easily That is really not a good idea.

Now that one is a sort of pitfall that might catch a novice, but there really are a lot of issues here.

The way through them though is the old programming trick of abstraction. We abstract the general database layer so we can switch to another type of database, and at a higher level we work with some kind of messaging/chat class, that class itself abstracts how the information is stored.

Therefore if push comes to shove, the database can be converted to another format and just a little code changed and things will be back working.

So we will start of with some relatively simple database structures and wait for issues to arise.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums

forum.myfreeforum.org
Back to top
View user's profile Private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Forum Blogs 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

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum