You might be very right, maybe my DB is poorly designed. I'm learning as I go, and like Olordy has mentioned, though I thought it was the best way, maybe it is the worst. And if it is bad design, please point it out..🙂
My thoughts, why I designed it this way (or badly designed it), and please any one, point out my mistakes and miss-thinking, I really would appreciate it.
I designed it this way because:
1). Seperate tables - because some of my task's, on a regular basis, would only be to a certian set of links. Like checking current links for link back or if they are down, ect. Smaller table, less load, less time. Current links would be the ONLY ones I would have to check link back and such.
2). Seperate tables, because a number of "links" would be shared with other domains, like mine (my sites), sponsors, toplist, but current links would be different for each domain. I thought why have the same tables for each domain, when i could just share one? Not to mention, putting the same info in for eah domain.
3). Seperate tables - because there could be a good 10,000 or more links in the db. Would there be a big difference going through a table with 10,000 links compared to 6,000?
4). Seperate tables - I read about lean db/tables. For example, making fields only as big as they need be, length. If your input will be only 2 charactors in length, and you specify the field to be 10, you've got alot of wasted space, adding to the size of the db, un-needed. Only one of my tables, sponsor has the extra field "mouseover", so all other links would have a empty value in that field, hence alot of wasted space, un-needed space in the db. Just my thinking.
I guess I dont know if it's less load, faster to go through a large table with mysql, and letting mysql do most of the work, then looking to do the queries with php that I am looking at with seperate tables? Also on the other hand, these links will not be in production, I build include pages from the data. So maybe i anwsered my own question.
I am here to learn, so please fire away, I'd be happy to hear if I am thinking wrong..🙂 Sorry to make these posts so long, just want to make sure every one knows what I am doing, to point out flaws, ect.
ronnie