Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can you speed up making changes to large tables (200k+ rows) in mysql databases?
    primarykey
    data
    text
    <p>I have a table inside of my mysql database which I constantly need to alter and insert rows into but it continues running slow when I make changes making it difficult because there are over 200k+ entries. I tested another table which has very few rows and it moves quickly, so it's not the server or database itself but that particular table which has a tough time. I need all of the table's rows and cannot find a solution to get around the load issues.</p> <pre><code>DROP TABLE IF EXISTS `articles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `articles` ( `id` int(11) NOT NULL auto_increment, `content` text NOT NULL, `author` varchar(255) NOT NULL, `alias` varchar(255) NOT NULL, `topic` varchar(255) NOT NULL, `subtopics` varchar(255) NOT NULL, `keywords` text NOT NULL, `submitdate` timestamp NOT NULL default CURRENT_TIMESTAMP, `date` varchar(255) NOT NULL, `day` varchar(255) NOT NULL, `month` varchar(255) NOT NULL, `year` varchar(255) NOT NULL, `time` varchar(255) NOT NULL, `ampm` varchar(255) NOT NULL, `ip` varchar(255) NOT NULL, `score_up` int(11) NOT NULL default '0', `score_down` int(11) NOT NULL default '0', `total_score` int(11) NOT NULL default '0', `approved` varchar(255) NOT NULL, `visible` varchar(255) NOT NULL, `searchable` varchar(255) NOT NULL, `addedby` varchar(255) NOT NULL, `keyword_added` varchar(255) NOT NULL, `topic_added` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `score_up` (`score_up`), KEY `score_down` (`score_down`), FULLTEXT KEY `SEARCH` (`content `), FULLTEXT KEY `asearch` (`author`), FULLTEXT KEY `topic` (`topic`), FULLTEXT KEY `keywords` (`content `,`keywords`,`topic`,`author`), FULLTEXT KEY `content ` (`content `,`keywords`), FULLTEXT KEY `new` (`keywords`), FULLTEXT KEY `author` (`author`) ) ENGINE=MyISAM AUTO_INCREMENT=290823 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload