version 1.12, 2001/02/16 12:40:29
|
version 1.15, 2001/02/20 22:24:45
|
Line 50 of a resource).
|
Line 50 of a resource).
|
</UL> |
</UL> |
</P> |
</P> |
<P> |
<P> |
|
Security occurs as a function of the user 'www', |
|
and the permissions on the files in the /usr/local/mysql |
|
directory. (These files and directories should |
|
be 700, 600, 500, 400, etc; not allow access to anyone |
|
but user 'www'.) |
|
</P> |
|
<P> |
These commands create the loncapameta database. |
These commands create the loncapameta database. |
<PRE> |
<PRE> |
mysql> CREATE DATABASE IF NOT EXISTS loncapameta |
mysql> CREATE DATABASE IF NOT EXISTS loncapa; |
-> CREATE TABLE IF NOT EXISTS resourceversions |
mysql> USE loncapa; |
|
mysql> CREATE TABLE IF NOT EXISTS metadata (title TEXT, author TEXT, subject TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, creationdate TEXT, lastrevisiondate TEXT, owner TEXT, copyright TEXT, FULLTEXT idx_title (title), FULLTEXT idx_author (author), FULLTEXT idx_subject (subject), FULLTEXT idx_notes (notes), FULLTEXT idx_abstract (abstract), FULLTEXT idx_mime (mime), FULLTEXT idx_language (language), FULLTEXT idx_creationdate (creationdate), FULLTEXT idx_lastrevisiondate (lastrevisiondate), FULLTEXT idx_owner (owner), FULLTEXT idx_copyright (copyright)) TYPE=MYISAM; |
|
mysql> INSERT INTO metadata VALUES ('1','2','3','4','5','6','7','8','9','10','11'); |
|
mysql> SELECT * FROM metadata WHERE title REGEXP "1"; |
|
</PRE> |
|
</P> |
|
<P> |
|
Current time values for things. |
|
<PRE> |
|
fenchurch.lite.msu.edu |
|
Mem: 46812K av, 45632K used, 1180K free, 14756K shrd, 4292K buff |
|
Swap: 1148608K av, 11260K used, 1137348K free 13244K cached |
|
|
|
Red Hat Linux release 6.2 (Zoot) |
|
Kernel 2.2.16-3 on an i586 |
</PRE> |
</PRE> |
|
<BR>Q: How big are data records in test database? A: on average, 1000 bytes each, medline records from PubMed. |
|
<BR>Q: How big is the biggest field? A: on average, 838 bytes each |
|
<BR>Q: How much time to insert 5284 medline records into database? |
|
A: 600 seconds |
|
<BR>Q: What about when using "speed-technique" on page 130? A: 689 seconds (weird, eh?) |
|
<BR>Q: What about REGEXP searching? A: about 1-2 seconds for small fields; |
|
10 to 20 seconds for REGEXP search on "abstract" field |
|
<BR>Q: What about FULLTEXT indexing? A: about 6 seconds for abstract field. |
|
|
</P> |
</P> |
<P> |
<P> |
An important quote from the manual: |
An important quote from the manual: |
Line 376 These files are installed.
|
Line 405 These files are installed.
|
</P> |
</P> |
<P> |
<P> |
This is how I installed the DBI perl modules. |
This is how I installed the DBI perl modules. |
<PRE> |
<PRE>$dbh |
[root@fenchurch DBI-1.14]# perl Makefile.PL |
[root@fenchurch DBI-1.14]# perl Makefile.PL |
*** Note: |
*** Note: |
The optional PlRPC-modules (RPC::PlServer etc) are not installed. |
The optional PlRPC-modules (RPC::PlServer etc) are not installed. |