Hi,
Besides transaction capability, is there anything else about innodb
tables that makes it superior to myISAM?
I really don’t need transactions, but for example, I need superior
reliability for index (too many index corruptions in the past). Is
innodb better in that area, or any other areas?
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/mySQL-innodb-ftopict224463.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=773646 5 15527
steve wrote: Hi, Besides transaction capability, is there anything else about innodb tables that makes it superior to myISAM?
Referential integrity. That is, foreign keys are actually enforced.
MyISAM allows the syntax declaring foreign keys, but does not enforce them.
I really don’t need transactions, but for example, I need superior reliability for index (too many index corruptions in the past). Is innodb better in that area, or any other areas?
Hmm. Index corruptions shouldn't be a normal part of MyISAM operation.
I don't know if InnoDB is better in that area, but I would caution you
to examine what is causing index corruption in your current system,
because it could also affect any other system. Are you shutting down
MySQL properly when you shut down your computer? Do you make backups,
and do other periodic table maintenance tasks?
Regards,
Bill K.
"steve" <Us************ @dbForumz.com> wrote in message
news:4_******** *************** *************** *@dbforumz.com. .. Hi, Besides transaction capability, is there anything else about innodb tables that makes it superior to myISAM?
No!
I really don't need transactions, ...
If you don't need/use transactions, then stick with MyISAM tables. The
overall performance is clearly superior.
... but for example, I need superior reliability for index (too many index corruptions in the past). Is innodb better in that area, or any other areas?
I have no reason to believe the indexing would be more reliable on innodb
tables. Let some one else jump in here.
BUT
I find the "(too many index corruptions in the past)" comment a bit
mysterious. Perhaps you should give a few details because indexing should
be *rock solid* for MyISAM tables with better support for maintenance and
repair tools.
Thomas Bartkus
"tom173" wrote: "steve" <Us************ @dbForumz.com> wrote in message news:4_******** *************** *************** *@dbforumz.com. .. Hi, Besides transaction capability, is there anything else about innodb tables that makes it superior to myISAM?
No!
I really don't need transactions, ...
If you don't need/use transactions, then stick with MyISAM tables. The overall performance is clearly superior.
... but for example, I need superior reliability for index (too many index corruptions in the past). Is innodb better in that area, or any other areas?
I have no reason to believe the indexing would be more reliable on innodb tables. Let some one else jump in here.
BUT
I find the "(too many index corruptions in the past)" comment a bit mysterious. Perhaps you should give a few details because indexing should be *rock solid* for MyISAM tables with better support for maintenance and repair tools.
Thomas Bartkus
Thanks Tom and Bill,
I was experiencing index corruptions due to stuffing too many inserts
(like a 1000 of them) into a single insert statement (with a hope to
gain performance). mysql did not like that at all, and all kinds of
mysterious and a lot of times unrelated index crashes were popping up.
Since I removed the huge multi-insert, everything is just humming.
Ok, I have gathered that if I don’t need transactions and referential
integrity, there are no benefits to innodb, considering the log
overhead.
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/mySQL-innodb-ftopict224463.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=774570
steve wrote: I was experiencing index corruptions due to stuffing too many inserts (like a 1000 of them) into a single insert statement (with a hope to gain performance). mysql did not like that at all, and all kinds of mysterious and a lot of times unrelated index crashes were popping up.
Since I removed the huge multi-insert, everything is just humming.
I still say this is not normal behavior for MyISAM. I use the extended
INSERT format in my backups frequently, and restore using INSERT
statements much longer than 1000 records. I don't have problems with
indexes getting corrupted.
I suggest that something else is going on that causes your indexes to
become corrupted. Is your datadir on a networked drive or something?
Is your hard drive old and failing? Do your ATA cables need to be reseated?
Another idea: you could try ALTER TABLE name DISABLE KEYS before doing
your inserts, followed by ALTER TABLE name ENABLE KEYS after the insert.
Regards,
Bill K.
"Bill Karwin1" wrote: steve wrote: I was experiencing index corruptions due to stuffing too many inserts (like a 1000 of them) into a single insert statement (with a hope to gain performance). mysql did not like that at all, and all kinds of mysterious and a lot of times unrelated index crashes were popping up. Since I removed the huge multi-insert, everything is just
humming.
I still say this is not normal behavior for MyISAM. I use the extended INSERT format in my backups frequently, and restore using INSERT statements much longer than 1000 records. I don't have problems with indexes getting corrupted.
I suggest that something else is going on that causes your indexes to become corrupted. Is your datadir on a networked drive or something? Is your hard drive old and failing? Do your ATA cables need to be reseated?
Another idea: you could try ALTER TABLE name DISABLE KEYS before doing your inserts, followed by ALTER TABLE name ENABLE KEYS after the insert.
Regards, Bill K.
Thanks, Bill. Since I broke up the mult-insert, all the problems have
disappeared. It could also be that I did not set the server settings
related to large packets (since on a semi-shared server), but then I
should have received proper error messages.. but all I got was index
corruption.
The corruption is now gone. Pretty sure related to huge inserts -
somehow.
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/mySQL-innodb-ftopict224463.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=774813 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Morten Gulbrandsen |
last post by:
Dear MySQL developers,
Could some experienced Database developer please take a look at this ?
It is supposed to be plain SQL2.
How can it be coded under MySQL
Especially all referential triggered actions.
|
by: Morten Gulbrandsen |
last post by:
Hi Programmers,
after this legal statement
ALTER TABLE EMPLOYEE TYPE =3D InnoDB;
I get=20
Warnings: 0 =20
and still MySQL claims to have to use Type =3D MyISAM,
|
by: Andy |
last post by:
I'm using Mysql Max-4.1.4-gamma for Linux.
I have a question related to a problem with my database server.
If on my db server I have 2 different database, say DB1 & DB2, I
create two INNODB tables with the same name (foo), one for each
database, how they are stored in the innodb data dictionary ?
DB1.foo & DB2.foo or simply foo ?
Thank you...
|
by: Stefan van Roosmalen |
last post by:
I want to use constraints, so I will have to use innodb tables (according to
the website mysql.com).
But, what is the difference between myisam and innodb tables ??
And why is there a comment "innodb free: 4096 kb" since I have changed my
tables from myisam to innodb?
Is this working like Sybase, where you need to create devices for data...
|
by: Mike Ho |
last post by:
I'm wondering if there is a way to retrieve Foreign Key declaration
information on both MyISAM and InnoDB tables.
Of course, I understand that MyISAM doesn't support Foreign Keys,
however, it does still parse FK declarations within a CREATE TABLE
statement, and moreover, it even creates an index on the column that
is the Foreign Key.
So...
| |
by: Reuben Pearse |
last post by:
Hi all,
I've just converted the tables in a big database (approx 27 million
records) from MyISAM to InnoDB. When I was using MyISAM I backed up
the database by stopping MySQL and then copying the MYI, MYD, frm
files in the database directory, and restored the database in the same
way.
Is there a similar way to backup and restore InnoDB...
|
by: Eddie |
last post by:
I have a MySQL-server running Innodb. We have installed ~ 2GB of
memory in the server. In spite of this MySQL keeps crashing due to
out-of-memory errors. The server is a dual xeon i686 running kernel
Linux 2.4.20-8smp redhat stock.
Top shows mysql steadily consuming more resourses over a period of 2
hours, up to 1.2 Gb, before it...
|
by: Good Man |
last post by:
Hi there
I have a database with about 20 or so tables, maybe a few thousand rows
in each. I am starting to do more complex things with my insertions etc,
and I want to start to use transactions, so I imagine I should change
some table types in the database from MyISAM to InnoDB.
I know that InnoDB tables are a completely different beast...
|
by: crescent_au |
last post by:
I've read articles and postings about MyISAM vs InnoDB but I am still a
bit unsure about which storage engine to use for my new project.
I am developing a website in PHP/MySQL, which includes features such as
member login, insert/update/delete operations for members to maintain
their records, report generation based on database entries,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |