mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-24 22:36:08 +01:00
Daniel Siepmann
e2a23c6455
Provide database index for widgets which is used by widget queries to fetch data way faster, e.g. 0.1 instead of > 5 seconds in one concrete project. Relates: #63
17 lines
511 B
SQL
17 lines
511 B
SQL
CREATE TABLE tx_tracking_pageview (
|
|
url text,
|
|
user_agent text,
|
|
operating_system varchar(255) DEFAULT '' NOT NULL,
|
|
type int(11) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
KEY page_views_per_page (pid,uid,crdate),
|
|
);
|
|
|
|
CREATE TABLE tx_tracking_recordview (
|
|
url text,
|
|
user_agent text,
|
|
operating_system varchar(255) DEFAULT '' NOT NULL,
|
|
record varchar(255) DEFAULT '' NOT NULL,
|
|
record_uid int(11) unsigned DEFAULT '0' NOT NULL,
|
|
record_table_name varchar(255) DEFAULT '' NOT NULL,
|
|
);
|