Actually there isn't a space.
http://en.wikipedia.org/wiki/Boyfriend
Actually there isn't a space.
http://en.wikipedia.org/wiki/Boyfriend
The SQL structure for your Kristall-Panel is atrocious.
You define someone an "id" in the users table yet you store the username in every other table. That is a really bad example of repetitive data. The aim of a database is to have as little repetitive data as possible.
"Timetable" table, you store text for a username. Text in MySQL can have a maximum field length of 65535 characters. I have never seen a username this long! varchar(30) will be adequate enough.
"online" table, I see no need for at all. You can just store the same fields in the users table. Therefore losing a table and saving repetitive data.
By storing the username in every table it will be causing MySQL to take longer to execute:
1) Searching a numerical value is faster
2) Usernames may contain both alpha and numerical characters, this means MySQL has to work doubly hard to process both ascii types.
3) Usernames are much harder to track across multiple tables and may easily be duplicated.
Looking at Kristall-Panel, it does seem quite redundant. Use ID's in usernames, and why use an online table just have a field last_active and do $check = time() - $sql['last_active'];
if($check < 1800) {
// user is online
}
else {
// user is offline
}
1500 being 30 minutes
How could this hapen to meeeeeeeeeeeeeee?lol.
I taught you that :| I don't see how you could determine if it is "redundant" or not.Looking at Kristall-Panel, it does seem quite redundant. Use ID's in usernames, and why use an online table just have a field last_active and do $check = time() - $sql['last_active'];
if($check < 1800) {
// user is online
}
else {
// user is offline
}
1500 being 30 minutes
You don't have to repeat anything that a superior being like Baving says, who is far more professional then anyone on this forum. I think he knows a tad bit more then you, me, and anyone else
Last edited by Dentafrice; 17-04-2008 at 11:57 PM.
Wow I can smell your testosterone from my house!
No need to get so defensive, I simply offered him a solution.
P.s. I'll remember anything I'm ever taught by Dentafrice, I make sure I never repeat in public.
GET OVER YOURSELF. It's a tiny piece of code!
How could this hapen to meeeeeeeeeeeeeee?lol.
I'm not even gonna begin to start how stupid your points are.The SQL structure for your Kristall-Panel is atrocious.
You define someone an "id" in the users table yet you store the username in every other table. That is a really bad example of repetitive data. The aim of a database is to have as little repetitive data as possible.
"Timetable" table, you store text for a username. Text in MySQL can have a maximum field length of 65535 characters. I have never seen a username this long! varchar(30) will be adequate enough.
"online" table, I see no need for at all. You can just store the same fields in the users table. Therefore losing a table and saving repetitive data.
By storing the username in every table it will be causing MySQL to take longer to execute:
1) Searching a numerical value is faster
2) Usernames may contain both alpha and numerical characters, this means MySQL has to work doubly hard to process both ascii types.
3) Usernames are much harder to track across multiple tables and may easily be duplicated.
Ok I will.
1) Search a numerical field and searching a text field are going to take less than 0.001 of a second, and on a very small DJ panel used by very small sites, there's nothing to worry about, if I wanted efficiency, I would be efficient.
2) Usernames are only tracked from the Request table, PM table and user table if I'm remembering correctly.
3) Their ID was to sort by ID, as was everything, not a reference. I give id references now anyway.
And last but not least
IT'S 2 YEARS OLD
Last edited by Jewish Bear; 18-04-2008 at 07:33 AM.
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
You could great a new football team - Spam United ;l
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
Want to hide these adverts? Register an account for free!