Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.