source: npl/mailserver/dspam/dspam-3.10.2/src/tools.mysql_drv/mysql_objects-speed.sql

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# $Id: mysql_objects-speed.sql,v 1.32 2011/05/09 22:43:52 sbajic Exp $
2
3-- ---------------------------------------------------------------------------
4--  ! ! ! ! ! ! ! THIS FILE SHOULD ONLY BE USED ON MYSQL < 4.1 ! ! ! ! ! ! !
5--  ! ! ! ! ! FOR MYSQL 4.1+ PLEASE USE mysql_objects-4.1.sql FILE ! ! ! ! !
6-- ---------------------------------------------------------------------------
7
8create table dspam_token_data (
9  uid int unsigned not null,
10  token char(20) not null,
11  spam_hits bigint unsigned not null,
12  innocent_hits bigint unsigned not null,
13  last_hit date not null
14) engine=MyISAM;
15
16create unique index id_token_data_01 on dspam_token_data(uid,token);
17create index spam_hits on dspam_token_data(spam_hits);
18create index innocent_hits on dspam_token_data(innocent_hits);
19create index last_hit on dspam_token_data(last_hit);
20
21create table dspam_signature_data (
22  uid int unsigned not null,
23  signature char(32) not null,
24  data longblob not null,
25  length int unsigned not null,
26  created_on date not null
27) engine=MyISAM;
28
29create unique index id_signature_data_01 on dspam_signature_data(uid,signature);
30create index id_signature_data_02 on dspam_signature_data(created_on);
31
32create table dspam_stats (
33  uid int unsigned primary key,
34  spam_learned bigint unsigned not null,
35  innocent_learned bigint unsigned not null,
36  spam_misclassified bigint unsigned not null,
37  innocent_misclassified bigint unsigned not null,
38  spam_corpusfed bigint unsigned not null,
39  innocent_corpusfed bigint unsigned not null,
40  spam_classified bigint unsigned not null,
41  innocent_classified bigint unsigned not null
42) engine=MyISAM;
43
44create table dspam_preferences (
45  uid int unsigned not null,
46  preference varchar(32) not null,
47  value varchar(64) not null
48) engine=MyISAM;
49
50create unique index id_preferences_01 on dspam_preferences(uid, preference);
Note: See TracBrowser for help on using the repository browser.