storage-engines

Fastest MySQL storage engine for storing data without concurrency

六眼飞鱼酱① 提交于 2019-12-05 17:21:54
I'm using a mysql base to store results from various test over a large amount of data (hundred of millions recordings). I'm the only user of the base so there won't be any problem of concurrency. I also want to use simple mathematical functions such as 'avg', 'std' etc What is the best engine in your opinion for such a task? I'm using InnoDB right now and it seems to me a bit heavy. Regards Guillaume Using an InnoDB table comes with an overhead of transactional support, rollbacks etc. If you don't need this support for transactions then you should really go with an MyISam table as it doesn't

consequences of changing mysql storage engine while application is running in production

强颜欢笑 提交于 2019-12-02 05:41:21
We have a currently running application which is using Mysql in multithreaded environment. We have approx 25 tables out of which 20 tables are using InnoDb as storage engine while 5 tables are using MyISAM as storage engine. We are going to change storage engine of these 5 tables to InnoDB. Will it cause some issue if change it during running application Any change you make with ALTER TABLE that requires a table-copy will lock the table. This is the most significant issue for applications. The table will be inaccessible from queries by any application. How long this lock lasts depends on the

How to check if MySQL table is UTF-8 and has storageEngine InnoDB?

一世执手 提交于 2019-11-29 03:22:44
Googling around just finds instructions for changing from one format to another, but I can't seem to find how exactly to make sure which of these I have first. How can I: Check what character encoding a table has? Check what storage engine a table uses? Check if all tables are certain encoding? Check if all tables have a certain storage engine? Nicola Cossu You can use information_schema in order to know the engine of each table. select table_name,engine from information_schema.tables where table_schema = 'your_database' For the encoding you can use show create table table_name or, even better

How do I know if a mysql table is using myISAM or InnoDB Engine?

别说谁变了你拦得住时间么 提交于 2019-11-28 15:55:05
问题 In MySQL, there is no way to specify a storage engine for a certain database, only for single tables. However, you can specify a storage engine to be used during one session with: SET storage_engine=InnoDB; So you don't have to specify it for each table. How do I confirm, if indeed all the tables are using InnoDB? 回答1: If you use SHOW CREATE TABLE, you have to parse the engine out of the query. Selecting from the INFORMATION_SCHEMA database is poor practice, as the devs reserve the right to

Create mysql table directly from CSV file using the CSV Storage engine?

独自空忆成欢 提交于 2019-11-27 17:35:33
I just learned that Mysql has a Native CSV storage engine which stores data in a Comma Separated Value file per table. Is it possible to create a table directly from a uploaded CSV file, something like: CREATE TABLE USERS < PATH/USERS.CSV where users.csv is uploaded by the user? Shiplu Mokaddim This is not possible. To create table you need a table schema. What you have is a data file. Schema cannot be created with it. What you can do is check if your file has header row. In that case you can create table using that header row but manually. However there is a way to generate create table

Create mysql table directly from CSV file using the CSV Storage engine?

人盡茶涼 提交于 2019-11-26 19:06:12
问题 I just learned that Mysql has a Native CSV storage engine which stores data in a Comma Separated Value file per table. Is it possible to create a table directly from a uploaded CSV file, something like: CREATE TABLE USERS < PATH/USERS.CSV where users.csv is uploaded by the user? 回答1: This is not possible. To create table you need a table schema. What you have is a data file. Schema cannot be created with it. What you can do is check if your file has header row. In that case you can create