![]() |
Database Design
As im not such expert as well as you guys are, I've to ask some basic database designin quetions
I've to design a database for artists details, such as Biography but just 10% of all my records have Biography data on that there are 2 methods to me for design this table and its scripts:
Another question: I've to store two links for my tracks, low quality and high quality Which one is more optimized? to use one field in tracks table and use a splitter for the urls or just using serialized data or use another table to join and use keys property? Thanks |
Quote:
Quote:
|
Got ya
I created my tables this way Thanks m8 --------------- Added [DATE]1201278626[/DATE] at [TIME]1201278626[/TIME] --------------- One another question about bitmask and bitwise in DB and queries I've multiple status for each entry on the table, such as SHOWN or HIDDEN, PREMIUM or FREE, ... i can add one field for each status, for example 3 TINYINT(1) or BOOL fields [SQL] SELECT * FROM table WHERE `x`=1 AND `y`=0 AND `z`=1 [/SQL] another method in my mind is use one TINYINT filed for all cases INSERT and SELECT rows using AND(&) bit operand for example [SQL] SELECT * FROM table WHERE `status`&5 [/SQL] where 1 stands for x, 2 for y and 4 for z which one is better? is there any difference in performance? |
my previous post had been auto merged
so accept my BUMP :D |
Personally I am not a fan of bits because I find them and their code obfuscating. I aslo do not know which is quicker.
My suggestion is try it both ways and use explain and some test queries to see which is better. |
All times are GMT. The time now is 07:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|