myisam

Using Entity Framework with MyIsam tables

Hi, Got a question about Entity Framework and MyIsam tables. My production database consists of MyIsam tables only. Often with a primary key like UserId and then a secondary KeyId that is auto incrementary. Since secondary auto incremantary keys are not allowed in InnoDb, and there will be ALOT of work to get rid of them before convert...

Does this case call for InnoDB or MyISAM?

I'm doing a search on a table (few inner joins) which takes max 5 seconds to run (7.5 million rows). It's a MyISAM table and I'm not using full-text indexing on it as I found there to be no difference in speed when using MATCH AGAINST and a normal "like" statement in this case from what I can see. I'm now "suffering" from locked tables ...

Which MySQL database engine is better for storing sessions and session data: MyISAM or InnoDB?

Pretty straightforward question. I use InnoDB for everything else, for a couple of reasons. Is it a performance hit over MyISAM for a 'high-traffic' table? ...

Can I create both MyISAM and InnoDB tables in the same database using Hibenrate hbm2ddl

I need both MyISAM tables and InnoDB tables in my database, I am using hbm2ddl to create them. Can I create both MyISAM and InnoDB tables in the same database using Hibenrate hbm2ddl? It seems that selecting the dialect forces me to use one or the other. ...

MySQL MyISAM fulltext search - how to add '#' as a word character for utf8 charset?

I am using MyISAM full text search. The table columns are having charset "utf8" and "utf8_general_ci" as collation. Now I want to implement #HashTag system, so that if I search for "#HashTag", only rows that contain "#HashTag" show up. Not rows that just contains "HashTag". According to the comment in this MySQL documentation, its easy...

Using a different MySQL database engine

Hello, I am having problems trying to use a different MySQL database engine. (I want to change from MyISAM to InnoDB) /etc/my.cnf [mysqld] bind-address = 127.0.0.1 default-storage-engine=InnoDB It appears that it is not installed? If that is true, how can I install InnoDB? mysql> show engines; +------------+---------+-------------...

Is it possible to change a single database to use InnoDB instead of myISAM on mysql

I want have a single database that uses InnoDB tables instead of myISAM tables (myISAM gives me good performance generally so I don't want to stop using it altogether). Is it possible to specify that a database use InnoDB tables if the default is myISAM. ...

How much amount of data can be store in MyISAM DB?

How much amount of data can be store in MyISAM DB? Can you Guys Says How Much TB? ...

Which database for a web crawler, and how do I use MySQL in a distributed environment?

Which database engine should I use for a web crawler, InnoDB or MYiSAM? I have two PC's, each with 1TB hard drives. If one fills up, I'd like for it to save to the other PC automatically, but reads should go to the correct PC; how do I do that? ...

Best Table Engine for massively updated MySQL table. MyISAM or HEAP?

I am creating an application which will store a (semi) real-time feed of a few different scales around a certain location. The weights of each scale will be put in a table with only as many rows as scales. The scale app feeds the MySQL database a new weight every second, which a PHP web app reads every 3 seconds. It doesn't seem like ...

For a stats systems what's better in MySQL: InnoDB, Archive or MyISAM?

I want to store all accesses to a webpage with user-agent, script-execution-time, request-uri, full referer and some more variables. What I have been doing is use normalized MyISAM tables like: stats stats_user_agents stats_referers stats_requested_uris But in a normal webpage this takes some SELECT's and 1 INSERT. It's better use A...

Index for a VARCHAR field with a 384 length in a MySQL database

I have a varchar(384) to store emails in a MyISAM table and I want check when the email exists but the index length limit is 333 bytes (because I'm using utf8 (1000 bytes/3 bytes)). Then what's the best way to search if a specified email exists, using a FULLTEXT index or creating another field with the email md5-hash in a BINARY(16) (wi...

MySQL Multi-Insert? MySQL DB integrity after failed INSERT

Is it possible to insert a row into multiple tables at once? If you do several tables related by an ID; what is the best way to ensure integrity is maintained in case an INSERT fails? ...

Make a query in mysql without invoking a trigger (How to disable a trigger)

I have 2 tables: comments and comments_likes. comments id message likes triggers: AFTER DELETE DELETE FROM comments_likes WHERE comment_id = OLD.id; comments_likes id comment_id triggers: AFTER INSERT UPDATE comments SET likes = likes + 1 WHERE comments.id = NEW.comment_id; AFTER DELETE UPDATE comments ...

Why MySQL Full text index doesn't work?

After trying everything I could, I finally created this test table: CREATE TABLE test_table ( id int(11) NOT NULL AUTO_INCREMENT, title text NOT NULL, PRIMARY KEY (id), FULLTEXT KEY title (title) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 With the following test data: INSERT INTO test_table (id, title) VALUES (1, 'Evolving intellig...

Write on InnoDB read from MyIsam

I'm working on a project that requires lots of database inserts. I also need to be able to use something like full-text-search to retrieve the data. Is is possible to use 2 tables, with the same exact data, oen MyIsam and one InnoDb to achieve this effect? Write on the InnoDb, and somehow read off of the MyIsam? ...

MySQL Analyze and Optimize - Are they required if only inserts - and the table has no joins?

Hi, I have a MyISAM table in MySQL which consists of two fields (f1 integer unsigned, f2 integer unsigned) and contains 320 million rows. I have an index on f2. Every week I insert about 150,000 rows into this table. I would like to know what is the frequency with which I need to run "analyze" and "optimize" on this table (as it would ...

Creating an AssociationSetMapping for MySQL with the Entity Framework Designer?

I am trying to build an Entity Framework model for my database schema using EF4 and Visual Studio 2010. Since I am stuck using MySQL as our database (for now), I pretty quickly discovered that since MYISAM tables don't support foreign key constraints, the designer does not have any way to automatically create all the associations for you...

What index should be used for this query AND for the ORDER BY clause?

Hi, I have a MyISAM table T with the following schema: f1 (integer unsigned not null) f2 (integer unsigned not null) This table has an index on f2 and it currently contains 320 million rows, and is expected to grow at the rate of about 200,000 rows once a week. I perform the following query on this table: SELECT DISTINCT T.f1 FROM T ...

MySQL - how to backup database to a different server?

Hi, I have 2 databases with MyISAM tables which are updated once a week. They are quite big in size (one DB is 2GB and the other is 6GB). I currently back them up once a week with mysqldump and keep the last 2 weeks' worth of .sql dumps on the same server where the DBs are running. I would like, however, to be able to dump the backups ...