560 blogs tracked4,950 posts indexed

#mysql

6 posts · 4 companies · newest first

2

How INTEGER and INT Produced Different Schemas in Debezium (opens on the source site)

A Debezium investigation: how MySQL synonyms INT and INTEGER were treated as different types.One of our CDC pipelines started failing with a ClassCastException on every batch.java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.LongThe pipeline was producing an Integer, but the downstream consumer expected a Long. Every run failed in the same way, which pointed us toward a schema mismatch rather than an issue with individual records.Background: how CDC worksTo see why a mismatch like that can hide for years, it helps to know how CDC actually works. Most…

big-datadebeziumexcerpt only · body stays at the source
From the web
4

MySQL Query Optimization with Releem (opens on the source site)

Introduction In this article, I’m going to show you how to optimize the queries executed by a Spring application running on MySQL using Releem. For a short introduction about Releem, check out this previous article, in which I explained how to set up Releem to collect metrics from your MySQL database. Spring Petclinic application The application under test is going to be the well-known Spring Petclinic that we are going to run using the MySQL profile: After starting the application, we are going to run the petclinic_test_plan.jmx JMeter test plan that is... Read More The post MySQL Query…

mysqloptimizationexcerpt only · body stays at the source
From the web
5

An Efficient Way to Check for Existence of Multiple Values in SQL (opens on the source site)

In a previous blog post, we’ve advertised the use of SQL EXISTS rather than COUNT(*) to check for existence of a value in SQL. I.e. to check if in the Sakila database, actors called WAHLBERG have played in any films, instead of: Do this: (Depending on your dialect you may require a FROM DUAL clause, … Continue reading An Efficient Way to Check for Existence of Multiple Values in SQL →

sqlcountexcerpt only · body stays at the source
From the web
6

Workaround for MySQL’s “can’t specify target table for update in FROM clause” Error (opens on the source site)

In MySQL, you cannot do this: The UPDATE statement will raise an error as follows: SQL Error [1093] [HY000]: You can’t specify target table ‘t’ for update in FROM clause People have considered this to be a bug in MySQL for ages, as most other RDBMS can do this without any issues, including MySQL clones: … Continue reading Workaround for MySQL’s “can’t specify target table for update in FROM clause” Error →

jooq-in-usesqlexcerpt only · body stays at the source
From the web
6 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.