<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Archive Storage Engine</title>
        <description>Forum for Archive Storage Engine</description>
        <link>https://forums.mysql.com/list.php?112</link>
        <lastBuildDate>Thu, 23 Apr 2026 00:24:09 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?112,684385,684385#msg-684385</guid>
            <title>Recover archive table (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,684385,684385#msg-684385</link>
            <description><![CDATA[ I have an InnoDB table that I use for logging.  Every few months I create a new one, rename the old one, and convert the old one into an archive using the Archive storage engine.  I&#039;ve been doing this for around 8 years without issue.<br />
<br />
This last time however I got a warning stating &quot;Engine error 1&quot; or &quot;Engine error -1&quot; (can&#039;t remember which but it was definitely a 1).  When I select on the new archive table I get no results.  If I perform a check table it takes several minutes and comes back stating the table is corrupt.  The size of the ARZ file is roughly what I would expect based on the the size of previous archive tables and relative number of records.  So I know the data is there.  When I perform a CHECK TABLE it tells me it is corrupt.  When I attempt a repair (I&#039;ve tried all options) it truncates it each time.<br />
<br />
I&#039;m on MySQL 5.7 and the only information I can find for my case is an old file called archive_reader written by Twitter over 13 years ago and not updated in more than 9.5 years.  I have my doubts this will help me given it was written for MySQL 5.1.<br />
<br />
Is there anything that I can use to recover this data?  It isn&#039;t mission critical but I have a gap now of about 6 months that I might one day need to reference (debugging, legal, etc).]]></description>
            <dc:creator>Ryan Hatfield</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 11 Feb 2020 18:41:50 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,674638,674638#msg-674638</guid>
            <title>Archive Some Data from Huge Table (&gt;1TB) (3 replies)</title>
            <link>https://forums.mysql.com/read.php?112,674638,674638#msg-674638</link>
            <description><![CDATA[ Hi All,<br />
<br />
I need to archive some data(Based on condition) from a huge table(size &gt; 1TB).<br />
My Table structure is as follows. This table is having 2 foreign keys and also have TEXT type column.<br />
MYSQL Version - 5.6<br />
<br />
<br />
<br />
CREATE TABLE `d_highmark_reports` (<br />
	`id` BIGINT(20) NOT NULL AUTO_INCREMENT,<br />
	`loan_app_reference_id` BIGINT(20) NOT NULL,<br />
	`client_id` BIGINT(20) NOT NULL,<br />
	`date_of_report_upload` DATE NULL DEFAULT NULL,<br />
	`highmark_status` INT(11) NULL DEFAULT NULL,<br />
	`request` TEXT NULL,<br />
	`response` MEDIUMTEXT NULL,<br />
	`raw_response` LONGTEXT NULL,<br />
	`is_online` TINYINT(1) NULL DEFAULT &#039;0&#039;,<br />
	`request_id` VARCHAR(20) NULL DEFAULT NULL,<br />
	`errors` TEXT NULL,<br />
	`date_of_online_request` DATE NULL DEFAULT NULL,<br />
	`process_def_key` VARCHAR(100) NULL DEFAULT NULL,<br />
	`active` TINYINT(1) NOT NULL DEFAULT &#039;1&#039;,<br />
	`eligibility_rule_status` INT(2) NULL DEFAULT &#039;0&#039;,<br />
	`is_processed_by_batch` TINYINT(1) NULL DEFAULT &#039;0&#039;,<br />
	PRIMARY KEY (`id`),<br />
	INDEX `fk_loan_app_reference_id` (`loan_app_reference_id`),<br />
	INDEX `fk_client_id` (`client_id`),<br />
	CONSTRAINT `fk_client_id` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),<br />
	CONSTRAINT `fk_d_highmark_reports_loan_app_reference_id` FOREIGN KEY (`loan_app_reference_id`) REFERENCES `m_loan_app_reference` (`id`)<br />
)<br />
COLLATE=&#039;utf8_general_ci&#039;<br />
ENGINE=InnoDB<br />
AUTO_INCREMENT=24002<br />
;]]></description>
            <dc:creator>Ravi Rai</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 08 May 2019 05:35:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,655816,655816#msg-655816</guid>
            <title>Can&#039;t write; duplicate key in table &#039;#sql-950b_207&#039; (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,655816,655816#msg-655816</link>
            <description><![CDATA[ I&#039;m using MySQL 5.7.17 on RH7<br />
<br />
I&#039;m facing any problems converting some innodb tables to archive...<br />
<br />
1) duplicate key... without duplicate key<br />
<br />
CREATE TABLE `MYTABLE` (<br />
  `ID` smallint(5) unsigned NOT NULL AUTO_INCREMENT,<br />
  `NAME_FR` varchar(50) DEFAULT NULL,<br />
  `NAME_DE` varchar(50) DEFAULT NULL,<br />
  `NAME_IT` varchar(50) DEFAULT NULL,<br />
  `NAME_EN` varchar(50) DEFAULT NULL,<br />
  PRIMARY KEY (`ID`)<br />
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;<br />
<br />
6 lines without duplicate<br />
<br />
ALTER TABLE MYTABLE engine=archive ;<br />
<br />
Lookup Error - MySQL Database Error: Can&#039;t write; duplicate key in table &#039;#sql-950b_476&#039;<br />
<br />
2) I&#039;m creating the same table, without AUTO_INCREMENT<br />
<br />
ALTER TABLE MYTABLE engine=archive ;<br />
<br />
Lookup Error - MySQL Database Error: Got error -1 from storage engine]]></description>
            <dc:creator>Fabien CELAIA</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 07 Mar 2017 08:47:58 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,644236,644236#msg-644236</guid>
            <title>MySQL 5.5.47 aborts with signal 11 while accessing table with archive engine beyond row# 2724397 (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,644236,644236#msg-644236</link>
            <description><![CDATA[ I have a table with 5635816 rows. I can access rows 0-2724397, but when I try to access the table beyond that point MySQL aborts with signal 11.<br />
I have found no way to access or recover the rows beyond that point.<br />
Any help in accessing or recovering the data is welcome.]]></description>
            <dc:creator>Bénoît Segond von Banchet</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 05 Apr 2016 19:37:26 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,627484,627484#msg-627484</guid>
            <title>large .arn file filling up whole hard drive (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,627484,627484#msg-627484</link>
            <description><![CDATA[ Hello,<br />
<br />
I recently ran into an issue whit an archive table of about 1gb. When I try to get data from this table a large .arn file with up to 800gb is created on the server, using almost all space available.<br />
This happens running mysql5.5.4 on ubuntu. I also have the same setup on another server (mysql5.0.38 on ubuntu) where I don&#039;t have this issue (thoug the archive there is ~8gb). On mysql5.0.38 there is no .arn but a .arm file that has only 19kb.<br />
<br />
This is what the table looks like:<br />
<br />
CREATE TABLE `importsuccess` (<br />
  `backup_id` int(10) unsigned NOT NULL,<br />
  `serial` varchar(36) NOT NULL,<br />
  `identifier` varchar(14) NOT NULL,<br />
  `sn_id` int(10) unsigned NOT NULL,<br />
  `sn` longtext NOT NULL,<br />
  `parsetime` bigint(20) unsigned NOT NULL DEFAULT &#039;0&#039;,<br />
  `ts_import` datetime NOT NULL<br />
) ENGINE=ARCHIVE DEFAULT CHARSET=utf8 PACK_KEYS=0;<br />
<br />
Thanks for any help,<br />
Flo]]></description>
            <dc:creator>Florian Enzinger</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 28 Jan 2015 13:28:20 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,614169,614169#msg-614169</guid>
            <title>what version of MySQL has Archive storage engine support built in? (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,614169,614169#msg-614169</link>
            <description><![CDATA[ As far as I know, the archive storage engine is built in source code only. So, if I want to use this engine, I should build it from source code, and it is a problem since I have to build so many times on different OS platform. <br />
<br />
So, my question is, what version has it built in? or any plan about that.]]></description>
            <dc:creator>rmn190 rmn190</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 14 May 2014 09:23:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,603005,603005#msg-603005</guid>
            <title>Huge and growing archive with ARN extension (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,603005,603005#msg-603005</link>
            <description><![CDATA[ Dear all,<br />
<br />
I got disk full and it turned out to be a large .ARN file from an archive table. When I cleared some space, the file continued to grow until the space was consumed. I tried to find what process is running the optimization and creating the .ARN (with intention to kill it) with the mysql command<br />
<br />
mysql&gt; show full processlist\G <br />
<br />
but nothing regarding the archive or optimization showed up. Any suggestions? It might not be an archive issue, but large ARN-files seem very unusual from a web search...<br />
<br />
-rw-rw---- 1 mysql mysql 153G 2014-01-04 17:45 acu_data_io_value_archive.ARN<br />
-rw-rw---- 1 mysql mysql  47M 2013-07-02 00:15 acu_data_io_value_archive.ARZ<br />
-rw-rw---- 1 mysql mysql 8.5K 2013-03-25 11:40 acu_data_io_value_archive.frm<br />
<br />
best regards,<br />
Joakim Byström]]></description>
            <dc:creator>Joakim Byström</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 22 Jan 2014 06:34:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,558773,558773#msg-558773</guid>
            <title>Archive Engine and Direct Access to Indices (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,558773,558773#msg-558773</link>
            <description><![CDATA[ Hi,<br />
  I&#039;m part of a project that right now is using Archive tables to hold log data. We are finding an increasing need to access data from these tables, but read speeds can be very slow due to the scanning of the whole tables.  I know there is an index on the AUTO_INCREMENT value (`contact_id` in this case). Since there is an index, wouldn&#039;t a WHERE `contact_id` = xx clause be a quick lookup? Does it still do a complete table scan even though it&#039;s searching on an indexed field?<br />
<br />
  I believe I read on the Wikipedia page for the Archive storage engine that there were plans to add more indeces onto the Archive-typed tables. Is there any update on this? Perhaps it&#039;s something I can add to the type if it&#039;s no longer being worked on.]]></description>
            <dc:creator>Andrew Vehlies</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Mon, 25 Jun 2012 18:03:40 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,507086,507086#msg-507086</guid>
            <title>Select returns no rows (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,507086,507086#msg-507086</link>
            <description><![CDATA[ I have an archive engine table that I have copied from our production server back to our lab.  I performed this copy by stopping the MySQL server and copying the file system directories. On the lab system, I updated the my.ini file to point to the correct data and InnoDB directories.<br />
<br />
MySQL starts fine, however, when performing a SELECT on this table, no results are returned. The statistics, however, appear to be correct:<br />
<br />
+------------+---------+---------------+------------+<br />
| table_name | engine  | total_size_kb | table_rows |<br />
+------------+---------+---------------+------------+<br />
| bulkdata   | ARCHIVE |    5382180.75 |  260991277 |<br />
+------------+---------+---------------+------------+<br />
1 row in set (0.00 sec)<br />
<br />
When I perform a check table, it shows the table as corrupt:<br />
mysql&gt; check table dotnetlogger.bulkdata;<br />
<br />
+-----------------------+-------+----------+----------+<br />
| Table                 | Op    | Msg_type | Msg_text |<br />
+-----------------------+-------+----------+----------+<br />
| dotnetlogger.bulkdata | check | error    | Corrupt  |<br />
+-----------------------+-------+----------+----------+<br />
1 row in set (0.00 sec)<br />
<br />
I then repair the table, which apparently works:<br />
<br />
mysql&gt; repair table dotnetlogger.bulkdata;<br />
+-----------------------+--------+----------+----------+<br />
| Table                 | Op     | Msg_type | Msg_text |<br />
+-----------------------+--------+----------+----------+<br />
| dotnetlogger.bulkdata | repair | status   | OK       |<br />
+-----------------------+--------+----------+----------+<br />
1 row in set (0.03 sec)<br />
<br />
After repair, it appears to have lost all my data:<br />
<br />
+------------+---------+---------------+------------+<br />
| table_name | engine  | total_size_kb | table_rows |<br />
+------------+---------+---------------+------------+<br />
| bulkdata   | ARCHIVE |          0.09 |          0 |<br />
+------------+---------+---------------+------------+<br />
1 row in set (0.00 sec)<br />
<br />
On our production system, the data is always readable. I am wondering what gets corrupted during the copy operation.  Is there a better way to copy archive data in its compressed form?  How can I recover this table?<br />
<br />
Thank you.]]></description>
            <dc:creator>Dan Kelly</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Fri, 30 Dec 2011 14:14:49 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,503438,503438#msg-503438</guid>
            <title>How to enable ARCHIVE Engine in 5.0.77? (3 replies)</title>
            <link>https://forums.mysql.com/read.php?112,503438,503438#msg-503438</link>
            <description><![CDATA[ Hello guys,<br />
<br />
I have got a very big problem on my neck.<br />
<br />
we are using mysql 5.0.77 and couple of days back we moved our tables (which have historical data) from MYISAM engine to ARCHIVE. It went well, in fact I see files for these archive table (ARZ, ARM etc.,) in my file system. Things were good.<br />
<br />
Couple of days back when we try to do database backup with the script, we noticed some of the table files didn&#039;t find by mysql. Diving bit deeper we came to know is all these tables are ARCHIVE tables. But we do see all table related file does exist in database folder. After doing some more investigation we came to know ARCHIVE engine is disabled on this server (This server went for schedule restart just 10 days back).<br />
<br />
The &quot;Show engines&quot; command clearly shows below lines<br />
<br />
<pre class="bbcode">
*************************** 7. row ***************************
 Engine: ARCHIVE
Support: NO
Comment: Archive storage engine

also this ...

mysql&gt; show variables like &#039;have_archive&#039;\G
*************************** 1. row ***************************
Variable_name: have_archive
        Value: NO
1 row in set (0.13 sec)</pre>
<br />
I don&#039;t know how this ENGINE is disabled on the fly. But my goal is to make ARCHIVE table&#039;s visible and accessible. <br />
<br />
Can any one help me how to enable ARCHIVE engine on my server (5.0.77)?]]></description>
            <dc:creator>Shashidhar Y</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 04 Jan 2012 18:01:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,430235,430235#msg-430235</guid>
            <title>replication with archive engine (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,430235,430235#msg-430235</link>
            <description><![CDATA[ This scenario is on v 5.1.48<br />
<br />
I have a master db with a table using myisam.  I have the same table using the archive engine on a slave db.  My understanding is that the archive engine does not allow UPDATE and DELETE statements.  When I run a DELETE statement against the master db table, the slave tries to execute that DELETE statement, but receives an Error 1031 (Table storage engine doesn&#039;t have this option) and the slave stops replicating.  Shouldn&#039;t the slave filter the statements?  Did I miss some configuration?<br />
<br />
I was able to get around it by adding slave-skip-errors=1031, however, that does not seem to be the correct solution.<br />
<br />
Thanks,<br />
Darin]]></description>
            <dc:creator>Darin Shintani</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 10 Aug 2011 21:48:13 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,424148,424148#msg-424148</guid>
            <title>Partition returned CORRUPT error (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,424148,424148#msg-424148</link>
            <description><![CDATA[ Dear Folks,<br />
From the application,foll critical error reported by the user <br />
<br />
error    : Partition p530 returned error<br />
 <br />
error    : Corrupt<br />
 <br />
Findings:<br />
No errors from the database error.log<br />
Current mysql version: 5.1.32<br />
table of size 1.2G contains 800 partitions ALL  SITS on ARCHIVE ENGINE.<br />
database sits on Linux box with enough memory/hardware.<br />
<br />
The current status is OK<br />
<br />
+-------------------+-------+----------+----------+<br />
| Table             | Op    | Msg_type | Msg_text |<br />
+-------------------+-------+----------+----------+<br />
| beaserv.poll_data | check | status   | OK       | <br />
+-------------------+-------+----------+----------+<br />
1 row in set (50.10 sec)<br />
<br />
<br />
Kindly pls advise asap what could be the reason for error,any possible bug ?<br />
<br />
Thanks<br />
Shafi]]></description>
            <dc:creator>Shafi ahmed</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 28 Jun 2011 08:16:18 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,420372,420372#msg-420372</guid>
            <title>Replication Innodb table to archive table (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,420372,420372#msg-420372</link>
            <description><![CDATA[ Is it possible to replicate a simple innodb table with int(11) primary key into a slave database where the same table uses archive engine. I&#039;ve been trying to do this with 5.1 and auto_increment support but it keeps giving me a duplicate key error and never starts replicating.<br />
<br />
CREATE TABLE `transactions` (<br />
  `transaction_id` int(11) NOT NULL AUTO_INCREMENT<br />
    ...<br />
 PRIMARY KEY (`transaction_id`),<br />
  KEY `idx1_transactions` (`completed_date`)<br />
) ENGINE=InnoDB AUTO_INCREMENT=1862714345 DEFAULT CHARSET=utf8<br />
<br />
CREATE TABLE `transactions` (<br />
  `transaction_id` int(11) NOT NULL AUTO_INCREMENT<br />
    ...<br />
 PRIMARY KEY (`transaction_id`),<br />
  KEY `idx1_transactions` (`completed_date`)<br />
ENGINE=ARCHIVE AUTO_INCREMENT=1862714345 DEFAULT CHARSET=utf8<br />
<br />
Thanks,<br />
Owen]]></description>
            <dc:creator>Owen C</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Thu, 19 May 2011 02:33:13 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,411909,411909#msg-411909</guid>
            <title>MySQL Archive process (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,411909,411909#msg-411909</link>
            <description><![CDATA[ Hi Friends,<br />
<br />
I am a new user of mysql.I have a requirement to set archival process of data in mysql5.1.<br />
<br />
So please let me know how can i take data to archive in my production database.<br />
My database having 37GB of data currently and it is increasing 3gb appx per day.<br />
<br />
<br />
Thanks<br />
&amp;<br />
Regards,<br />
Pravat]]></description>
            <dc:creator>pravat nayak</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Mon, 14 Mar 2011 06:34:27 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,408239,408239#msg-408239</guid>
            <title>Unique key issue with Archive Engine (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,408239,408239#msg-408239</link>
            <description><![CDATA[ Hi,<br />
<br />
I am having issue with Archive engine when i create table with Unique keys.<br />
<br />
Could any one please tell me if you come across any such issues?<br />
<br />
Here is my code.<br />
<br />
CREATE  TABLE IF NOT EXISTS SAMPLE (<br />
  SESSION_ID 		VARCHAR(15) NOT NULL ,<br />
  NAME 			VARCHAR(12) NOT NULL ,<br />
  COST	 		VARCHAR(50) NULL ,<br />
  TYPE		 	TINYINT(1) NOT NULL ,<br />
  CODE	 		VARCHAR(5) NOT NULL ,<br />
  STATUS	 	VARCHAR(15) NOT NULL,<br />
  DATE	 		TIMESTAMP DEFAULT 0 ,<br />
  SERVICE_ID 		VARCHAR(20) NOT NULL<br />
)<br />
ENGINE=ARCHIVE partition by range(UNIX_TIMESTAMP(DATE))(partition p20110104 values less than(UNIX_TIMESTAMP(&#039;2011-01-05&#039;)), partition p20110105 values less than maxvalue);<br />
    <br />
ALTER TABLE SAMPLE ADD CONSTRAINT US_SAMPLE UNIQUE (SESSION_ID, NAME, COST, TYPE, CODE, STATUS, DATE, SERVICE_ID);<br />
<br />
Thanks<br />
-Ramesh-]]></description>
            <dc:creator>Rameshkumar Venkatachalam</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Thu, 17 Feb 2011 14:18:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,407192,407192#msg-407192</guid>
            <title>Archive Storage Engine Config Parameters (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,407192,407192#msg-407192</link>
            <description><![CDATA[ Hi All,<br />
<br />
Does Archive Storage Engine support config parameters to change the read and log buffer size (something similar to innodb config parameters). We were moving one of our table from innodb to archive. The insert operation into the archive table shows a very big improvement. However the select operation requires the same amount of time. Since archive engine uses compressed data we were hoping to see some improvement in the select operation as well. Since this is not the case, we were thinking that increasing the read buffer size might help.<br />
<br />
Please let me know your comments. Is there some other way to improve select performance on archive engine.<br />
<br />
Thanks and Regards<br />
Sujit<br />
<br />
P.S. The table is partitioned by date , is not indexed and all the queries on it do a full table scan.]]></description>
            <dc:creator>Sujit S</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Fri, 11 Feb 2011 05:41:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,401224,401224#msg-401224</guid>
            <title>Archive table crashed and not recovering (4 replies)</title>
            <link>https://forums.mysql.com/read.php?112,401224,401224#msg-401224</link>
            <description><![CDATA[ Dear All,<br />
<br />
I am using MySQL 5.1.47 (64 bit) on CentOS 5.5(64bit). I have a database with archive storage engine. One of table is crashed in the database and it couldn&#039;t be repaired using &#039;repair table&#039; command. Following error I can see in mysql error log file<br />
<br />
Error &#039;Incorrect key file for table &#039;tbldatarecords&#039;; try to repair it&#039;<br />
<br />
Any suggestion about hoe to repair / fix it.<br />
<br />
Thanks a lot for support]]></description>
            <dc:creator>Syed Zaeem Abbas</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Sat, 21 May 2011 22:40:21 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,397411,397411#msg-397411</guid>
            <title>Enable / Install / Activate Archive Engine on MySQL 5.0.77 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,397411,397411#msg-397411</link>
            <description><![CDATA[ Hi All,<br />
I am trying to enable the Archive Engine and I am having a hard time finding information on how to do this. I have seen examples of what to do before you install MySQL but I am not seeing it for after the fact. I assumed it was adding some command to the MY.CNF file but I cant seem to figure / find that out. Here is my environments setup. <br />
<br />
OS - RED HAT ENTERPRISE (Linux 2.6.18-164.11.1.el5 GNU/Linux)<br />
MySQL - 5.0.77 (Cant upgrade this)<br />
+------------+---------+----------------------------------------------------------------+<br />
| Engine     | Support | Comment                                                        |<br />
+------------+---------+----------------------------------------------------------------+<br />
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         |<br />
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      |<br />
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     |<br />
| BerkeleyDB | YES     | Supports transactions and page-level locking                   |<br />
| BLACKHOLE  | NO      | /dev/null storage engine (anything you write to it disappears) |<br />
| EXAMPLE    | NO      | Example storage engine                                         |<br />
| ARCHIVE    | NO      | Archive storage engine                                         |<br />
| CSV        | NO      | CSV storage engine                                             |<br />
| ndbcluster | NO      | Clustered, fault-tolerant, memory-based tables                 |<br />
| FEDERATED  | NO      | Federated MySQL storage engine                                 |<br />
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          |<br />
| ISAM       | NO      | Obsolete storage engine                                        |<br />
+------------+---------+----------------------------------------------------------------+<br />
Please let me know if you need any more information to help me with this.]]></description>
            <dc:creator>Pinak Doshi</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Mon, 20 Dec 2010 14:59:36 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,390443,390443#msg-390443</guid>
            <title>Archive table frequently crashing (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,390443,390443#msg-390443</link>
            <description><![CDATA[ Hi All,<br />
<br />
We are running Mysqsl 5.1.34-log community server (on linux) and we have a ARCHIVE table which has around 122280263 records now. There will be more inserts to this table on daily basis.<br />
<br />
For reporting also, we use the same table. Data on this table is split across 370 partitions. One partition or the other frequently gets corrupted and we are restoring data as and when they get corrupted.<br />
<br />
Server has 2 CPUs and 3G RAM.<br />
<br />
Which parameters in my.cnf are corresponds to archive table performance? We would like to tune them and see if we get a solution for this problem.<br />
<br />
Thanks,<br />
Mani]]></description>
            <dc:creator>Mani C</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 23 Nov 2010 07:56:12 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,370903,370903#msg-370903</guid>
            <title>Diff between key_buffer n key_buffer_size ? and why it is needed ? (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,370903,370903#msg-370903</link>
            <description><![CDATA[ key_buffer n key_buffer_size ? and why it is needed ?]]></description>
            <dc:creator>Naveen Kumar Sarihaddula</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 08 Jun 2010 05:41:48 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,358590,358590#msg-358590</guid>
            <title>Unable to repair/rebuild archive table with partition (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,358590,358590#msg-358590</link>
            <description><![CDATA[ After a power failure I can&#039;t repair my archive tables.<br />
<br />
Information below:<br />
<br />
CREATE TABLE `archive_item` (<br />
  `ID` int(10) unsigned NOT NULL,<br />
  `url` char(40) NOT NULL default &#039;&#039;,<br />
  `site_id` mediumint(8) unsigned NOT NULL<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 PARTITION BY HASH(site_id) PARTITIONS 64;<br />
<br />
MariaDB [njuice]&gt; check table archive_item;<br />
+---------------------+-------+----------+-----------------------------+<br />
| Table               | Op    | Msg_type | Msg_text                    |<br />
+---------------------+-------+----------+-----------------------------+<br />
| njuice.archive_item | check | error    | Partition p0 returned error |<br />
| njuice.archive_item | check | error    | Corrupt                     |<br />
+---------------------+-------+----------+-----------------------------+<br />
<br />
MariaDB [njuice]&gt; alter table archive_item rebuild partition p0;<br />
ERROR 1034 (HY000): Incorrect key file for table &#039;archive_item&#039;; try to repair it<br />
<br />
MariaDB [njuice]&gt; alter table archive_item repair partition p0;<br />
+---------------------+--------+----------+-----------------------------+<br />
| Table               | Op     | Msg_type | Msg_text                    |<br />
+---------------------+--------+----------+-----------------------------+<br />
| njuice.archive_item | repair | error    | Partition p0 returned error |<br />
| njuice.archive_item | repair | error    | Corrupt                     |<br />
+---------------------+--------+----------+-----------------------------+<br />
<br />
MariaDB [njuice]&gt; repair table archive_item;                    <br />
+---------------------+--------+----------+-----------------------------+<br />
| Table               | Op     | Msg_type | Msg_text                    |<br />
+---------------------+--------+----------+-----------------------------+<br />
| njuice.archive_item | repair | error    | Partition p0 returned error |<br />
| njuice.archive_item | repair | error    | Corrupt                     |<br />
+---------------------+--------+----------+-----------------------------+<br />
<br />
Is there any way to check the archive files on disk like with myisamchk? Any other suggestions?]]></description>
            <dc:creator>Andreas Thorstensson</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Mon, 15 Mar 2010 10:18:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,296798,296798#msg-296798</guid>
            <title>Date and Time type in archive table (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,296798,296798#msg-296798</link>
            <description><![CDATA[ Hi,<br />
I have two tables whose DDLs are:<br />
test_datetime:<br />
CREATE TABLE `test_datetime` (<br />
  `if_id` int(10) unsigned NOT NULL,<br />
  `coll_type_id` tinyint(3) unsigned NOT NULL,<br />
  `value_diff` bigint(20) unsigned DEFAULT NULL,<br />
  `rate` int(10) unsigned DEFAULT NULL,<br />
  `coll_ts` datetime NOT NULL<br />
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (if_id) PARTITIONS 1024  */;<br />
<br />
test_time<br />
CREATE TABLE `test_time` (<br />
  `if_id` int(10) unsigned NOT NULL,<br />
  `coll_type_id` tinyint(3) unsigned NOT NULL,<br />
  `value_diff` bigint(20) unsigned DEFAULT NULL,<br />
  `rate` int(10) unsigned DEFAULT NULL,<br />
  `coll_ts` time NOT NULL<br />
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (if_id) PARTITIONS 1024  */;<br />
<br />
Then, i insert the same data (25,000,000 records) into these two tables except that the datetime data is convert to time data by time(coll_ts) before insert into the second table(test_time). <br />
<br />
Last, i get the DATA_LENGTHs of these two tables from information_schema.tables, they are 118917198(test_datetime) and 121706132.<br />
<br />
I am so surprised that i think &#039;0000-00-00 00:00:00&#039; is longer than &#039;00:00:00&#039;, so is there anyone who can tell me why the table length with time column is greater than the table with datetime column.<br />
<br />
Thanks and best regards,<br />
<br />
Dianbo]]></description>
            <dc:creator>dianbau Zhu</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 23 Dec 2009 07:29:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,294109,294109#msg-294109</guid>
            <title>.zip data corrupted when exported by select dumpfile (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,294109,294109#msg-294109</link>
            <description><![CDATA[ I have an InnoDB table storing a compress file (.zip) into two columns: Data (longblob) and Filename (text). When a export the file via select into dumpfile... I am not able to extract the file at command line. All the compress programs alert the file is corrupted, but I am able to extract them inside the windows. I read somewhere something related to the drop of a last zero of the binary file.<br />
Is anyone have an idea how to solve such a problem?<br />
tks.<br />
R.]]></description>
            <dc:creator>Ricardo Faria</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Thu, 03 Dec 2009 00:42:56 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,289157,289157#msg-289157</guid>
            <title>Enable deletion for archive engine. (2 replies)</title>
            <link>https://forums.mysql.com/read.php?112,289157,289157#msg-289157</link>
            <description><![CDATA[ The archive engine should obviously support deletion.  It&#039;s somewhat ridiculous that it&#039;s prevented - seems almost like spin on a lack of an ability than a feature.  There are often situations where you would like to archive data for a few years, a decade maybe but not necessarily &quot;forever&quot;.  So for those use cases (the majority) we&#039;re still left wanting.  Live -&gt; Archive -&gt; Delete.  <br />
<br />
Wouldn&#039;t it be far more reasonable to have the ability to toggle whether deletes are allowed for a particular table perhaps upon creation only - or to be clearer supply effectively a copy of the archive engine with deletion disabled called perhaps the audit storage engine to facilitate this where needed?]]></description>
            <dc:creator>David Drouin</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Fri, 06 Nov 2009 14:52:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,268677,268677#msg-268677</guid>
            <title>Archive Engine File Limit (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,268677,268677#msg-268677</link>
            <description><![CDATA[ Hi,<br />
<br />
I just want to know the archive engine file limit for the database.<br />
<br />
Thanks]]></description>
            <dc:creator>6ky 8ngel</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 24 Jun 2009 15:35:20 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,257737,257737#msg-257737</guid>
            <title>Failed creating Archive table (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,257737,257737#msg-257737</link>
            <description><![CDATA[ Hi,<br />
<br />
Im trying to create this tabel with storage engine Archive. But it failes and i cant find any good information about why. <br />
<br />
Its failing with this error message:<br />
ERROR 1005 (HY000): Can&#039;t create table &#039;apricot.RPT_TR_JN&#039; (errno: -1)<br />
mysql&gt;<br />
<br />
This is my table definition. Im running Mysql 5.1.33 on CenOS.<br />
<br />
mysql&gt; CREATE TABLE `RPT_TR_JN` (<br />
    -&gt;   `TIME_STAMP` datetime DEFAULT NULL,<br />
    -&gt;   `RECORD_SOURCE` int(11) DEFAULT NULL,<br />
    -&gt;   `SUBSCRIBER_ID` varchar(64) DEFAULT NULL,<br />
    -&gt;   `PACKAGE_ID` smallint(6) DEFAULT NULL,<br />
    -&gt;   `SERVICE_ID` int(11) DEFAULT NULL,<br />
    -&gt;   `PROTOCOL_ID` smallint(6) DEFAULT NULL,<br />
    -&gt;   `SAMPLE_SIZE` int(11) DEFAULT NULL,<br />
    -&gt;   `PEER_IP` bigint(20) DEFAULT NULL,<br />
    -&gt;   `PEER_PORT` int(11) DEFAULT NULL,<br />
    -&gt;   `ACCESS_String` varchar(1024) DEFAULT NULL,<br />
    -&gt;   `INFO_String` varchar(1024) DEFAULT NULL,<br />
    -&gt;   `SOURCE_IP` bigint(20) DEFAULT NULL,<br />
    -&gt;   `SOURCE_PORT` int(11) DEFAULT NULL,<br />
    -&gt;   `INITIATING_SIDE` tinyint(4) DEFAULT NULL,<br />
    -&gt;   `END_TIME` int(11) NOT NULL,<br />
    -&gt;   `MILISEC_DURATION` bigint(20) DEFAULT NULL,<br />
    -&gt;   `TIME_FRAME` tinyint(4) DEFAULT NULL,<br />
    -&gt;   `UPSTREAM_VOLUME` bigint(20) DEFAULT NULL,<br />
    -&gt;   `DOWNSTREAM_VOLUME` bigint(20) DEFAULT NULL,<br />
    -&gt;   `SUBS_CNT_ID` int(11) DEFAULT NULL,<br />
    -&gt;   `GLBL_CNT_ID` int(11) DEFAULT NULL,<br />
    -&gt;   `PKG_USG_CNT_ID` int(11) DEFAULT NULL,<br />
    -&gt;   `IP_PROTOCOL` smallint(6) DEFAULT NULL,<br />
    -&gt;   `PROTOCOL_SIGNATURE` int(11) DEFAULT NULL,<br />
    -&gt;   `ZONE_ID` int(11) DEFAULT NULL,<br />
    -&gt;   `FLAVOR_ID` int(11) DEFAULT NULL,<br />
    -&gt;   `FLOW_CLOSE_MODE` smallint(6) DEFAULT NULL,<br />
    -&gt;   KEY `RPT_TR_I1` (`END_TIME`)<br />
    -&gt; ) ENGINE=Archive DEFAULT CHARSET=latin1;]]></description>
            <dc:creator>Jonas Nylund</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 14 Apr 2009 19:00:11 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,250040,250040#msg-250040</guid>
            <title>Delete old records (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,250040,250040#msg-250040</link>
            <description><![CDATA[ Hi All,<br />
<br />
I am required to store large amount of textual data. the information source is CSV files holding CDRs (call details records). <br />
The data is accessed infrequently for data mining but needs to be kept for few months, this leads me to using the Archive engine with partitions per interval (month, week, according to table scan performance).<br />
<br />
The only issue I need to figure out is how to remove old data after a retention period has expired, as I know &#039;Delete&#039; is not supported by this engine.<br />
Conversion to another engine is also impractical as after decompression the data is too large to fit on disk.<br />
What is the best practice for such scenario? dropping the partition for the expired interval?]]></description>
            <dc:creator>Joss BH</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Fri, 27 Feb 2009 07:13:26 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,245507,245507#msg-245507</guid>
            <title>ARCHIVE crash after power failure (no replies)</title>
            <link>https://forums.mysql.com/read.php?112,245507,245507#msg-245507</link>
            <description><![CDATA[ Hello!<br />
<br />
Do you guys use ARCHIVE on production systems? I want to warn you, that last week after power failure, the only one ARCHIVE table I was using, caused my server to be unavailable.<br />
2 CPUs were working 100% while MySQL was trying to repair that table. It was impossible to run any query, because server was so busy. In result data in table was corrupted, despite `check table` successful result.<br />
What&#039;s more surprising, in some rows, I have found /var/lib/mysql dir listing, and what is also very surprising, select * from this table is causing MySQL do die. Details on this bug can be founf here: <a href="http://bugs.mysql.com/bug.php?id=29250"  rel="nofollow">http://bugs.mysql.com/bug.php?id=29250</a>]]></description>
            <dc:creator>Piotr Czachur</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Mon, 02 Feb 2009 09:25:20 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,243584,243584#msg-243584</guid>
            <title>ARCHIVE table very slow... (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,243584,243584#msg-243584</link>
            <description><![CDATA[ Hi<br />
I&#039;m testing the ARCHIVE storage engine and i vase some performance problems...<br />
<br />
Test table consist of 30 columns:<br />
- 1 blob,<br />
- 1 bigint (primary index),<br />
- 24 int,<br />
- 1 datetime,<br />
- 3 float.<br />
<br />
Currently I&#039;ve got 13000000 records inside, they use 13GB on MyISAM and only 3GB on ARCHIVE.<br />
<br />
When i was testing random selects from this table I&#039;ve got results on selecting 1 row:<br />
MyISAM : 25ms average<br />
ARCHIVE: 47615ms average.<br />
<br />
Am I doing something wrong or does ARCHIVE cannot search for given KEY and must read whole table?]]></description>
            <dc:creator>Marcin Piatek</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Wed, 21 Jan 2009 21:41:32 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?112,235823,235823#msg-235823</guid>
            <title>Archive SELECT Speed vs. MyISAM (1 reply)</title>
            <link>https://forums.mysql.com/read.php?112,235823,235823#msg-235823</link>
            <description><![CDATA[ What is the speed difference between the archive storage engine and MyISAM, as the Archive compresses the row data on insert, based on SELECT statements?<br />
<br />
Is there much in it?<br />
<br />
Many thanks.]]></description>
            <dc:creator>Jamie Thompson</dc:creator>
            <category>Archive Storage Engine</category>
            <pubDate>Tue, 25 Nov 2008 16:59:51 +0000</pubDate>
        </item>
    </channel>
</rss>
