Go Back   Rhinocerus > Newsgroup > Newsgroup comp.databases.mysql

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2008, 05:06 PM
nintesa
Guest
 
Posts: n/a
Default table configuration advice also for me!

Hello from Italy!

I'm going to create a php script that registers and reports stats for
20/30 externals sites (with about 2.000 daily visitors each one).

I need to configure the tables (mysql) where I would store visitors data.

I need help to choose between these solutions:

a) two table visitors and visits whit a field site_id to distinguish
between monitorated sites visitors

b) two table for each site: site_1_visitors, site_1_visits,
site_2_visitors, site_2_visits etc...

What do you think about it?

Thanks!!
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 04-17-2008, 05:11 PM
Rik Wasmus
Guest
 
Posts: n/a
Default Re: table configuration advice also for me!

On Thu, 17 Apr 2008 19:06:06 +0200, nintesa <nintesa@nomaaaaail.it> wrote:

> Hello from Italy!
>
> I'm going to create a php script that registers and reports stats for
> 20/30 externals sites (with about 2.000 daily visitors each one).
>
> I need to configure the tables (mysql) where I would store visitors data.
>
> I need help to choose between these solutions:
>
> a) two table visitors and visits whit a field site_id to distinguish
> between monitorated sites visitors
>
> b) two table for each site: site_1_visitors, site_1_visits,
> site_2_visitors, site_2_visits etc...


Hmm, don't crosspost please.

(allthough this is a better group for it then comp.lang.php, in which I
answered your question)
--
Rik Wasmus
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 05:25 PM
nintesa
Guest
 
Posts: n/a
Default Re: table configuration advice also for me!

Rik Wasmus ha scritto:
> On Thu, 17 Apr 2008 19:06:06 +0200, nintesa <nintesa@nomaaaaail.it> wrote:
>
>> Hello from Italy!
>>
>> I'm going to create a php script that registers and reports stats for
>> 20/30 externals sites (with about 2.000 daily visitors each one).
>>
>> I need to configure the tables (mysql) where I would store visitors data.
>>
>> I need help to choose between these solutions:
>>
>> a) two table visitors and visits whit a field site_id to distinguish
>> between monitorated sites visitors
>>
>> b) two table for each site: site_1_visitors, site_1_visits,
>> site_2_visitors, site_2_visits etc...

>
> Hmm, don't crosspost please.
>
> (allthough this is a better group for it then comp.lang.php, in which I
> answered your question)


You're right! I before posted on php and then I remembered this group...
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 05:26 PM
Erick T. Barkhuis
Guest
 
Posts: n/a
Default Re: table configuration advice also for me!

nintesa:
> Hello from Italy!
>

Hi from Germany

> I'm going to create a php script that registers and reports stats for
> 20/30 externals sites (with about 2.000 daily visitors each one).
>
> I need to configure the tables (mysql) where I would store visitors data.
> I need help to choose between these solutions:
>
> a) two table visitors and visits whit a field site_id to distinguish
> between monitorated sites visitors
>
> b) two table for each site: site_1_visitors, site_1_visits,
> site_2_visitors, site_2_visits etc...


In my opinion, you have an ER diagram with at least three entities:
sites, visits and visitors. Because visitors can visit multiple sites,
and sites are visited by multiple visitors, it should look like:


SITE--1----n--VISIT--m----1--VISITOR

Since you don't mention any attributes, I assume for now, that this would
do. Depending on possible repetitive attributes, you'd need to normalize
further.


--
Erick
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 08:29 PM
Paul Lautman
Guest
 
Posts: n/a
Default Re: table configuration advice also for me!

Rik Wasmus wrote:
> On Thu, 17 Apr 2008 19:06:06 +0200, nintesa <nintesa@nomaaaaail.it>
> wrote:
>> Hello from Italy!
>>
>> I'm going to create a php script that registers and reports stats for
>> 20/30 externals sites (with about 2.000 daily visitors each one).
>>
>> I need to configure the tables (mysql) where I would store visitors
>> data.
>> I need help to choose between these solutions:
>>
>> a) two table visitors and visits whit a field site_id to distinguish
>> between monitorated sites visitors
>>
>> b) two table for each site: site_1_visitors, site_1_visits,
>> site_2_visitors, site_2_visits etc...

>
> Hmm, don't crosspost please.
>
> (allthough this is a better group for it then comp.lang.php, in which
> I answered your question)


He didn't cross post, he multi-posted, which is worse


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Big Table / Little Table Update Sigurd Hermansen Newsgroup comp.soft-sys.sas 0 01-06-2005 11:51 PM
Re: Big Table / Little Table Update nospam@HOWLES.COM (Howard Schreier Newsgroup comp.soft-sys.sas 0 12-29-2004 01:38 AM



All times are GMT. The time now is 11:26 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.