Skip to content

Commit

Permalink
Set upgrade/backup large table warning to tables with more than half …
Browse files Browse the repository at this point in the history
…a million rows
  • Loading branch information
ginatrapani committed Oct 31, 2011
1 parent bbac6fd commit 2672dc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/source/install/backup.rst
Expand Up @@ -12,8 +12,8 @@ depends on how large your ThinkUp installation's database has grown.
**Small Databases: Web-Based Backup (Logged-in admin only)**

If your ThinkUp installation only has 1 or 2 moderately active social media accounts set up in it, and none of your
database tables have more than 1 million rows, then you should use the easy web-based backup tool. (Hint:
you can see the sizes of your tables using a tool like phpMyAdmin or the ``mysql`` command line tool.)
database tables have more than a half million rows, then you should use the easy web-based backup tool. ThinkUp will
let you know if a table is larger than that when you begin the backup process.

To use the web-based backup tool, log into ThinkUp as an administrator. Under :doc:`Settings>Application
</userguide/settings/application>`, click on
Expand All @@ -33,7 +33,7 @@ When running a web-based backup, here's what to do if you see the error :doc:`Ca
**Large Databases: Command Line Backup**

If your ThinkUp installation has more than 2 very active social media accounts set up, chances are your database tables
are large. (We consider a ThinkUp database with any table over 1 million rows large.)
are large. (We consider a ThinkUp database with any table over half a million rows large.)

Depending on your server speed and utilization, it can take a very long time for database structure updates to
complete on very large installations; so the web-based backup tool can time out. To be on the safe side,
Expand Down
8 changes: 4 additions & 4 deletions docs/source/install/upgrade.rst
Expand Up @@ -45,15 +45,15 @@ If the message reads "ThinkUp is currently in the process of upgrading. Please t
The Upgrade page will let you know how many database migrations have to run to get up-to-date.

If your ThinkUp installation only has 1 or 2 moderately active social media accounts set up in it, and none of your
database tables have more than 1 million rows, then you should use the easy web-based upgrader. (Hint:
you can see the sizes of your tables using a tool like phpMyAdmin or the ``mysql`` command line tool.)
database tables have more than half a million rows, then you should use the easy web-based upgrader. ThinkUp will let
you know if any of your tables are this large when you begin the upgrade process.

Click on the "Update now" page to update ThinkUp's database structure.
Click on the "Update now" button to update ThinkUp's database structure.

**Large Databases: Command Line Upgrade**

If your ThinkUp installation has more than 2 very active social media accounts set up, chances are your database tables
are large. (We consider a ThinkUp database with any table over 1 million rows large.)
are large. (We consider a ThinkUp database with any table over half a million rows large.)

Depending on your server speed and utilization, it can take a very long time for database structure updates to
complete on very large installations; so the web-based upgrader can time out. To be on the safe side,
Expand Down
2 changes: 1 addition & 1 deletion webapp/_lib/controller/class.UpgradeController.php
Expand Up @@ -68,7 +68,7 @@ class UpgradeController extends ThinkUpAuthController {
/**
* max table rows before we warn users to use the CLI upgrade interface
*/
static $WARN_TABLE_ROW_COUNT = 1000000;
static $WARN_TABLE_ROW_COUNT = 500000;

/**
* Constructor
Expand Down

0 comments on commit 2672dc7

Please sign in to comment.