Changes between Initial Version and Version 1 of InstallationGuidelines/MySQL


Ignore:
Timestamp:
01/14/10 16:32:35 (15 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/MySQL

    v1 v1  
     1== Installation on MySQL ==
     2Replacing the simple SQLite database with MySQL allows greater scalability
     3
     4Create the database 1st:
     5{{{
     6mysqladmin --user=root -p create sahana
     7mysql -p
     8 GRANT USAGE ON mysql.sahana TO 'sahana'@'localhost' IDENTIFIED BY 'mypassword';
     9}}}
     10
     11Suggest to use connection pools to reuse connections in {{{models/00_db.py}}}:
     12{{{
     13db=SQLDB('mysql://user:password@hostname/sahana',pools=20)
     14}}}
     15
     16How many pools?
     17{{{
     18whatever you choose it always starts with one and grows with the
     19number of concurrent requests up to the value of pools (the max number
     20of concurrent pools). So pools should be the max number of concurrent
     21requests you expect. That is the max value of:
     22<number of requests/second> / <average time per request in seconcds>
     23}}}
     24
     25----
     26InstallationGuidelines