azzazzello
Technical User
Greetings,
I have a an ads data table which has, say, 7 columns:
"Date" field contains just the Date part (time is zeroed out)
Primary key is composite, consisting of first 5 columns: Date,AdvertiserID,AdID,PublisherID,PublisherSiteID
Suppose I get a million hits an hour (well, a lot, basically), and I update this table immediately. Writes are happening with ReadCommited Isolevel
I need to provide for an interface that advertisers and publishers can go to and look at the impressions and clicks generated. Also, and more importantly, I must watch out for writing (recording data coming in) not interfering with reading (customer queries).
The customer-facing-data can be delayed up to 1 hour
Here is where my questions begin. Do I need to set up a read only database that had data replicated to it at regular intervals from the main (incoming-data processing) database?
If so, what is the best technique to use? Transactional replication?
Or would it be sufficient to have views against the main table, and query against them? If I understand views correctly, they hold pointers to data in tables, and update their references as data comes in. Would just having views be sufficient? Please advise, thank you
I have a an ads data table which has, say, 7 columns:
Code:
Date,AdvertiserID,AdID,PublisherID,PublisherSiteID,Impressions,Clicks
"Date" field contains just the Date part (time is zeroed out)
Primary key is composite, consisting of first 5 columns: Date,AdvertiserID,AdID,PublisherID,PublisherSiteID
Suppose I get a million hits an hour (well, a lot, basically), and I update this table immediately. Writes are happening with ReadCommited Isolevel
I need to provide for an interface that advertisers and publishers can go to and look at the impressions and clicks generated. Also, and more importantly, I must watch out for writing (recording data coming in) not interfering with reading (customer queries).
The customer-facing-data can be delayed up to 1 hour
Here is where my questions begin. Do I need to set up a read only database that had data replicated to it at regular intervals from the main (incoming-data processing) database?
If so, what is the best technique to use? Transactional replication?
Or would it be sufficient to have views against the main table, and query against them? If I understand views correctly, they hold pointers to data in tables, and update their references as data comes in. Would just having views be sufficient? Please advise, thank you