Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
70 views

I want to run a bunch of large background queries where I don't want these lower priority queries to fill up the InnoDB cache with rows that will flush out cached rows needed by higher priority ...
Ben Slade's user avatar
  • 532
0 votes
1 answer
61 views

I have a COUNT(*) query that is really fast in several DB's, but is really slow on MySQL AURORA: I can't seem to figure out why. First I thought it was because it went the MEMORY went over the 4MB, ...
user3634184's user avatar
3 votes
1 answer
78 views

I have a table like this (InnoDB): CREATE TABLE group_member ( group_id INT NOT NULL, member_id INT NOT NULL, content TEXT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, ...
kahn's user avatar
  • 55
0 votes
1 answer
51 views

As part of a maintenance activity we have started deleting unwanted data from our database tables. This is being done to free up space and improve the I/O operation efficiency of our database tables, ...
sapna keswani's user avatar
1 vote
1 answer
63 views

I’ve been digging into MySQL (both v5.7 and 8.4) InnoDB’s partitioning and noticed that PARTITION BY HASH just uses good ol’ modulo arithmetic to split data (e.g., id % number_of_partitions). That got ...
Joey's user avatar
  • 143
1 vote
0 answers
92 views

the web service was working well before the mysql database instance in Cloud SQL went unavaialable because the disk got full. After adding more space, enough space , the db and the web service start ...
Assem's user avatar
  • 12.2k
0 votes
3 answers
104 views

The thing is about a very simple update statement: UPDATE `user` SET fans = fans +1 where id = 8; (because it will not cause any concurrency issue when just single[auto commit] use it, so I want to ...
Billy's user avatar
  • 81
-1 votes
1 answer
95 views

I have a simple MYSQL table containing a varchar column as PRIMARY KEY. Now, I'm querying on that column and the query is taking ~4 secs. select entity_name from entity where entity_name in ('sunshine-...
user785461's user avatar
2 votes
1 answer
317 views

I got a warning in my AWS console about the InnoDB history list length increasing on one cluster. Taking a look at show engine innodb status, I see that the number in the "Purge done" line ...
Swechsler's user avatar
  • 121
0 votes
1 answer
103 views

I'm using MariaDB hosted on a Synology NAS. I have a query that's taking around 2.5 seconds, and I want to optimize its execution time. Here's the query: SELECT * FROM jobs WHERE job_number LIKE '%...
kreya's user avatar
  • 1,239
0 votes
1 answer
115 views

I have a scenario where multiple jobs (job1, job2, and job3) may arrive at the same time and need to execute in a serialized manner. I'm using MySQL with the InnoDB engine and a locking mechanism with ...
Mandar Dhupdhare's user avatar
1 vote
1 answer
56 views

I work on a system where we have a table with millions of rows where the primary key is a customer_id. We have about 8000 customers. I am about to lift the software onto a new major release and was ...
stewe's user avatar
  • 80
0 votes
0 answers
63 views

I am using Azure MySQL Flexible Server and encountering InnoDB runtime locks that seem to cause delays or failures in my database operations. How can I determine which queries or operations are ...
Vipul's user avatar
  • 1
1 vote
1 answer
387 views

I have a queue system built using PHP and MySQL (I initially built it using redis, but it was kinda complicated and not very flexible), and after doing some research I found out that since MySQL 8.0.1,...
Isaac Souza's user avatar
0 votes
0 answers
93 views

I am monitoring the Innodb_buffer_pool_read_requests before and after executing my query on a MySQL, and I noticed that it increases by approximately 400, even though my query is very simple. Here is ...
bbang's user avatar
  • 11
1 vote
1 answer
131 views

I have this table using InnoDB as engine: create table if not exists Playlists( UserId bigint unsigned not null, Title varchar(50) not null, IsPublic bool not null, primary key (UserId,...
Jule's user avatar
  • 77
-1 votes
1 answer
87 views

Last night, something happened to my MySQL database running on Ubuntu and no matter what I did, I could not not get it to start. I eventually had to backup the /var/lib/mysql folder and do a full ...
Peter Clark's user avatar
2 votes
2 answers
216 views

I am running MySql v8.0 with InnoDB. I have a simple transaction that has a SELECT (not a SELECT ... FOR UPDATE) followed by an INSERT. I'm getting frequent deadlocks when many DB inserts are ...
airvin's user avatar
  • 21
0 votes
1 answer
40 views

We have MySQL 5.7 and frequently end up with errors due to deadlock condition. The most frequent queries that error out involve a Select transaction on different set of rows and an Update operation of ...
user3651204's user avatar
0 votes
0 answers
39 views

In MySQL 5.6.51 using InnoDB, I have two tables: users user_aka_names Table details: user_aka_names has a foreign key, user_id to users One user can have many user_aka_names Not all users have a ...
Luke Krauss's user avatar
-1 votes
1 answer
75 views

In the process of optimizing MySQL, we discovered a performance collapse at 10,000 concurrent connections during benchmarksql testing. Is there a theoretical limitation, or is it an issue with MySQL's ...
wangbin579's user avatar
0 votes
0 answers
71 views

I have large CSV files with stock values and I have successfully added these to my MariaDB database using the "LOAD DATA INFILE" command: LOAD DATA LOCAL INFILE '/mnt/HD/HD_b2/Public2/...
Jimmy Westberg's user avatar
1 vote
0 answers
48 views

In MySQL dev documentation the definition of log.write_lsn and log.flushed_to_disk is similar log.write_lsn Up to this lsn we have written all data to log files. It's the beginning of the unwritten ...
Gokul Selvaraj's user avatar
1 vote
0 answers
97 views

The following sequences of SQL statements are executed on two different connections to the same database. 1: START TRANSACTION ISOLATION LEVEL SERIALIZABLE; 1: UPDATE Person SET LastLogin=NOW() WHERE ...
SlowFox's user avatar
  • 73
1 vote
2 answers
119 views

I have a Mysql InnoDB table with storage size(+index) over 2,000GB, There are 14 billion rows in that table.. I need to drop data added over 1 month ago, and figure out a way to always keep recent 1 ...
zonyang's user avatar
  • 888
0 votes
0 answers
39 views

Suppose there is a table t with columns id (primary key) and name, where name has an auxiliary index. The table contains three rows: 1 green, 2 red, and 3 black. Assume I open transaction A and ...
Rezero's user avatar
  • 168
0 votes
3 answers
126 views

I receive data from a remote server via HTTP POST requests in JSON format which I save for later processing in a database table. Occasionally I encounter deadlock errors doing so. The data is unique ...
Emosewaj's user avatar
0 votes
0 answers
59 views

we have got some raspberry devices running small webservers with mysql database. They are literally clones and we are monitoring them through MySQL Workbench. Some of them has this high innodb read ...
Bela_b's user avatar
  • 131
0 votes
0 answers
32 views

ref: https://dev.mysql.com/doc/refman/8.4/en/order-by-optimization.html if InnoDB table, the table primary key is implicitly part of the index. Dose it order by primary key when value of secondary ...
chi tian's user avatar
0 votes
2 answers
119 views

I have a stored procedure that runs every one hour to generate a summary of the transactions that happened in the service. The stored procedure reads the data from a table called transaction_log and ...
midhun d kumar's user avatar
1 vote
1 answer
59 views

please tell me, how to solve the following issue. javascript.js gets data from givemedata.php which selects data from DB and shall lock the selected row to make it invisible for other queries with a ...
Paul's user avatar
  • 116
1 vote
0 answers
40 views

I have a table with the following schema: CREATE TABLE T ( id BIGINT UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, key BIGINT UNSIGNED NOT NULL, val BIGINT UNSIGNED NOT NULL, ); I need to ...
wingerse's user avatar
  • 3,837
0 votes
0 answers
55 views

I have a database that my laravel applications connects to, that has MyISAM tables. So it doesn't show foreign keys, although they are implemented. I created this migration to fix the issue and then I ...
Hilal Najem's user avatar
0 votes
1 answer
63 views

Table like that: CREATE TABLE `test_un_index` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `idx_test_name` (`name`) ) ENGINE=...
ii G's user avatar
  • 1
0 votes
0 answers
83 views

Executing show engine innodb status shows deadlocks between the following two queries: update `transparency_codes` set `shipment_id` = 1265, `transparency_codes`.`updated_at` = '2024-05-08 17:45:30' ...
Hao Xi's user avatar
  • 391
0 votes
1 answer
74 views

I have a performance issue in MySQL. I have a relatively simple table that only uses numeric values. CREATE TABLE `_user_activity` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` bigint NOT NULL, `...
Junior's user avatar
  • 567
0 votes
1 answer
46 views

I have this user-agents-table in my db: CREATE TABLE user_agents ( pk bigint NOT NULL AUTO_INCREMENT, user_agent TEXT NOT NULL, user_agent_hash BINARY(16) UNIQUE NOT NULL, PRIMARY KEY (pk), ) ...
nyx's user avatar
  • 489
1 vote
0 answers
46 views

I am running Laravel Migration and this is how it looks on terminals adding a column state_id on the click table which contains millions of records. state_id is nullable and has no default value with ...
Furqan Freed's user avatar
0 votes
0 answers
47 views

I am belatedly converting some php applications using MySQL from MyISAM to Innodb. One set of tables were converted on Friday, and now on Monday there are problems. Specifically for one table used ...
Rob Brandt's user avatar
0 votes
0 answers
20 views

in Laravel I have a service which is not wrapped in a transaction and involves both INSERT ... ON DUPLICATE KEY UPDATE and DELETE statements targeting the same table, customers. INSERT INTO customers (...
u LoV's user avatar
  • 1
0 votes
1 answer
351 views

I have this SQL query SELECT * FROM `storages_remains` WHERE `FREE` > 0 AND `CATALOG_ID` IN (...) CATALOG_ID is not unique, because table may contains multistorages data. CATALOG_ID + ...
Sergei Illarionov's user avatar
1 vote
1 answer
153 views

Running EXPLAIN SELECT COUNT(*) FROM activities shows it plans to use the secondary index with and only one column int and keylen of 5. Action takes anywhere from 2 minutes to 6 minutes, sporadically ...
Michael Modan's user avatar
0 votes
1 answer
86 views

I am trying to understand the relation between locks and indexes. I have the following table CREATE TABLE example_table ( id INT AUTO_INCREMENT, col1 VARCHAR(255), col2 INT, PRIMARY ...
yuria's user avatar
  • 563
1 vote
1 answer
28 views

We've ran into some issues where a DBA or a developer will accidentally do something like insert into `newtable` select * from `verylargetable` 10 minutes (or maybe an hour!) into running this query, ...
juacala's user avatar
  • 2,235
0 votes
0 answers
84 views

I am facing a challenge in implementing field-level encryption for the "rating" column in my MySQL InnoDB database. The codebase is distributed across various repositories, and I am unable ...
bhuwan saoji's user avatar
2 votes
0 answers
78 views

There are two tables: site (id, name, url), page (id, code, content, path, site_id). The site table has a record with id = 1. The page table is empty. I'm trying to insert a new record into the Page ...
Vasyabylba's user avatar
0 votes
1 answer
832 views

we have configured the below settings in our configuration file. --innodb_file_per_table=1 --innodb_undo_tablespaces=3 --innodb_undo_directory=/var/lib/mysql/ --innodb_undo_log_truncate=ON --...
chwajahat's user avatar
0 votes
0 answers
64 views

I was trying to make club, and students database I am using sequelize, my engine is innoDB and I wrote like this module.exports = (seq, DataTypes) => { const Club = seq.define("clubs",...
Mineppl13's user avatar
0 votes
1 answer
38 views

I would like to update a record if exists. Thats the easiest part, but that record may not exist, so let's create it first. Pseudocode: UPDATE x SET y=1 WHERE id=5 if the result of it is 0, then... a,...
John Smith's user avatar
  • 6,259
0 votes
1 answer
71 views

I am developing an application that records the values of several probes and I am wondering about storing these values in our DBMS. The traditional way would be to create a table like this: CREATE ...
NDedob's user avatar
  • 21

1
2 3 4 5
90