ACK, in progress
Mike, right now we have two tables: "simple" which stores linkback results, and
"complex" which stores the results of Google and Yahoo API queries for
CC-licensed content (which we never ever use).
I was thinking of adding a third table whose structure mirrors "simple", but
instead I could be convinced to jam the Flickr data into "simple".
The structure of simple is:
simple (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
license_uri VARCHAR(255) NOT NULL,
search_engine VARCHAR(255) NOT NULL,
count INT NOT NULL,
timestamp DATETIME NOT NULL,
country VARCHAR(255),
language VARCHAR(255)
);
We could jam the Flickr data in by setting search_engine='Flickr', and
country=NULL and langauge=NULL. One reason I don't like that approach is that
the Flickr results are more canonical than the search engine ones. For that
reason, I favor a second table (in the same database):
site_specific (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
license_uri VARCHAR(255) NOT NULL,
site VARCHAR(255) NOT NULL,
count INT NOT NULL,
timestamp DATETIME NOT NULL,
);
ML, feel free to write "don't care", but I wondered: when you wrote "added to
the main stats database," did you mean adding it to the same table? If you don't
mean that, I'll quickly start a fresh separate table.
|