>Description:
    When I query using 
"SELECT d1.document_id as document_id_1, d2.document_id as document_id_2, 
sum(d1.weight * d2.weight) as similarity FROM dw_merge as d1 INNER JOIN dw_merge as d2 
ON d1.word_id=d2.word_id WHERE d1.document_id=5 AND d1.weight > 0.05 AND d2.weight > 
0.05 GROUP BY document_id_1, document_id_2 ORDER BY similarity DESC limit 0,50;"
    dw_merge table is a MERGE table, it reference to 100 tables.
    The total number of records of the 100 tables is about 400,000 records.
    
>How-To-Repeat:
        the table schema of the 100 tables is 
"CREATE TABLE document_word (
   document_id int(11) DEFAULT '0' NOT NULL,
   word_id int(11) DEFAULT '0' NOT NULL,
   freq int(6) DEFAULT '0' NOT NULL,
   weight float(7,5) DEFAULT '0.00000' NOT NULL,
   PRIMARY KEY (document_id, word_id),
   KEY word_id (word_id),
   KEY document_id (document_id),
   KEY weight (weight)
);"
        
>Fix:
        

>Submitter-Id:  <submitter ID>
>Originator:    Herb Jiang
>Organization:
 
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      
>Severity:      
>Priority:      
>Category:      mysql
>Class:         
>Release:       mysql-4.0.1-alpha (Official MySQL RPM)
>Server: /usr/bin/mysqladmin  Ver 8.23 Distrib 4.0.1-alpha, for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          4.0.1-alpha
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/lib/mysql/mysql.sock
Uptime:                 18 min 28 sec

Threads: 2  Questions: 136  Slow queries: 0  Opens: 137  Flush tables: 1  Open tables: 
130  Queries per second avg: 0.123
>Environment:
        
System: Linux herb-nb 2.4.14-2HJ #6 週四 11月 15 21:42:14 CST 2001 i686 pld
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-99)
Compilation info: CC='gcc'  CFLAGS='-O6 -fno-omit-frame-pointer -mpentium'  CXX='gcc'  
CXXFLAGS='-O6 -fno-omit-frame-pointer              -felide-constructors 
-fno-exceptions -fno-rtti -mpentium'  LDFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 12月 14 10:58 /lib/libc.so.6 -> 
libc-2.2.4.so
-rwxr-xr-x    1 root     root      1290876 10月 13 02:30 /lib/libc-2.2.4.so
-rw-r--r--    1 root     root     27316592 10月 13 02:17 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 10月 13 02:17 /usr/lib/libc.so
Configure command: ./configure  --disable-shared --with-mysqld-ldflags=-all-static 
--with-client-ldflags=-all-static --without-berkeley-db --with-innodb 
--enable-assembler --with-mysqld-user=mysql 
--with-unix-socket-path=/var/lib/mysql/mysql.sock --prefix=/ 
--with-extra-charsets=complex --exec-prefix=/usr --libexecdir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --localstatedir=/var/lib/mysql 
--infodir=/usr/info --includedir=/usr/include --mandir=/usr/man --with-embedded-server 
--enable-thread-safe-client '--with-comment=Official MySQL RPM'


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to