Jump to content

Help on this Optimization!


Gayner

Recommended Posts


$DB->query("SELECT cl.*, f.id AS to_desktop, a.desktop as jesktop
FROM ibf_faq AS cl
INNER JOIN ibf_members AS f ON f.name = cl.editor
INNER JOIN ibf_members AS a ON a.name = cl.editor
     where cid = $id ");

 

Instead of keep putting more

INNER JOIN ibf_members AS a ON a.name = cl.editor

is there way to call all what i want from ibf_members instead of making new lines each time?

Link to comment
https://forums.phpfreaks.com/topic/172672-help-on-this-optimization/
Share on other sites

denormalise parts of your db

 

lol that makes perfect sence.. ^^ :(

 

Yeah it does. You create joins because of created relationships if you lower the number of relationships then so do your number of joins. If you don't know what denormalisation is then look up what db normalisation is (denormalisation is the reverse process).

denormalise parts of your db

 

lol that makes perfect sence.. ^^ :(

 

Yeah it does. You create joins because of created relationships if you lower the number of relationships then so do your number of joins. If you don't know what denormalisation is then look up what db normalisation is (denormalisation is the reverse process).

 

That's like telling nto to post here if i dont have a question..

 

Is there anyway u can asnwer my question man? about the database issue not denormailising.. thx

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.