Go Back   Cloud Computing > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-30-11, 08:53
BOD Member
 
Join Date: Nov 2010
Posts: 57
Question Layout of Database

Hi

I am trying to submit label1, label2, label3, etc.....into a column of a table that controls content for each web page. What I want to do is when someone clicks on any tag that tag queries the DB and pulls to create a list of links for every page that controls that tag. The question is, how can I organize the tables out for the best performance and scalability.
Reply With Quote
  #2 (permalink)  
Old 05-30-11, 08:55
BOD Member
 
Join Date: Nov 2010
Posts: 104
Default

Just create tables like below:

Quote:
labels(labelid, labelname)
labellinks(labelid, linkurl)
labels.labelid will be a primary key. Create an index on labellinks.label.id
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.