![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi all. I'm building a database to keep track of users and their products. The number of users is expected to always increase (hopefully number of products to their account. The product definition will have several fields and might take several kilobytes of space (title, short and long description, etc). I have a user database that keeps track of all user related information, like emails, address, etc. What I was puzzling over was how to store the products for each users. Creating a "products" table for each user was my first thought but I'm not sure it's the best way to go, especially when thousands of users will have an account. Another idea was to create a global "Products" table and place all products for all users in there with an identifier for doing lookups. Again, I'm not sure this is the right kind if approach. Drive space is not an issue, but quick delivery of product infos to viewer is. Any suggestion? Thanks a lot, --Eric http://www.tlnewsreader.com | |||
|
| Advertisements |
| | #2 | ||
| Eric Fortier wrote: > Hi all. > > I'm building a database to keep track of users and their products. The number > of users is expected to always increase (hopefully > number of products to their account. > > The product definition will have several fields and might take several > kilobytes of space (title, short and long description, etc). > > I have a user database that keeps track of all user related information, like > emails, address, etc. What I was puzzling over was how to store the products > for each users. Creating a "products" table for each user was my first thought > but I'm not sure it's the best way to go, especially when thousands of users > will have an account. > > Another idea was to create a global "Products" table and place all products for > all users in there with an identifier for doing lookups. Again, I'm not sure > this is the right kind if approach. > > Drive space is not an issue, but quick delivery of product infos to viewer is. > > Any suggestion? > > Thanks a lot, > > --Eric > http://www.tlnewsreader.com > I think your second approach makes sense. You would have to tie the product/s to each user via a PK as in all relational designs. Read up on relational db design to get a better idea on how to attack the questions you will have. The MySQL manual is a good place to start. Also, 'Database Design For Mere Mortals' by Michael Hernandez has done me well. -- Amer Neely, Softouch Information Services Home of Spam Catcher W: www.softouch.on.ca E: trudge@softouch.on.ca Perl | MySQL | CGI programming for all data entry forms. "We make web sites work!" | |||
|
| | #3 | ||
| Amer, Thank you for your reply and the book suggestion! I'll look the book up. --Eric http://www.tlnewsreader.com | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: best, infos, keep, product, users |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Product Not Shipped | Paul | Ebay Technical Questions | 0 | 05-30-2007 12:37 AM |
| Please tell your friends about this unbelieveable product.......... | alex | Building An Internet Business | 0 | 05-29-2007 2:13 AM |
| Please tell your friends about this unbelieveable product.......... | alex | Building An Internet Business | 1 | 05-29-2007 2:12 AM |
| Please tell your friends about this unbelieveable product.......... | alex | Building An Internet Business | 0 | 05-29-2007 2:09 AM |
| COA/product ? | Gazwad | Windows | 1 | 05-28-2007 10:29 PM |
| Featured Websites | ||||
|