From Java 7 to Java 16 and beyond, this technical journal has been a resource by and for the Java community.
What you need to know about code migration from the previous Long-Term-Support versions of the platform: Java 11 and Java 8
What you need to know about code migration from the previous Long-Term-Support versions of the platform: Java 11 and Java 8
This week's MySQL was a great one for novices looking to level up from beginner level SQL development to a higher level.
The problem: Find the customers with more
than one unreturned rented movies that are past their return due
date. You might to look at this for the example of finding an overdue
rentals.
The answer:
First we need to get the customer_id from the customer table. Then it takes a bit of struggle to get the information on the rental. It is often easier to write queries by determining the needed output columns, then the 'qualifiers' or stuff on the right of the WHERE clause before determining what has to be joined to get between the two.
The part of the query to find the overdue entries requires the rental date where it …
[Read more]
My task is to collect performance data about a single query,
using PERFORMANCE_SCHEMA
(P_S for short) in MySQL,
to ship it elsewhere for integration with other data.
In a grander scheme of things, I will need to define what performance data from a query I am actually interested in. I will also need to find a way to attribute the query (as seen on the server) to a point in the codebase of the client, which is not always easy when an ORM or other SQL generator is being used. And finally I will need to find a way to view the query execution in the context of the client code execution, because the data access is only a part of the system performance.
This is about marking a query so that it can be identified in source and attributed to its origin in the codebase.
In my scenario, I have control over the ORM or DAO. I can look at
the stackframe, identify the caller of the execute
function and put …
In the article, we are going to discuss data types including string, numeric, date and time, spatial, and JSON supported by MySQL. Also, we’ll provide examples of their usage and see how to change a data type for the table column using dbForge Studio for MySQL. Contents What is a Data Type Data Types in […]
The post Data Types in MySQL: Tutorial and Full List with Examples of Data Formats appeared first on Devart Blog.
This week's MySQL uses the Sakila database (details on how to get this data) and this week's quiz is a great one for those wanting to move from beginner level SQL development to a higher level. There will be lots of tables to joins.
The problem: Find the customers with more than one unreturned rented movies that are past their return due date. You might to look at this for the example of finding an overdue rentals. You will need to display the customer's ID number, the number of overdue videos, and the names of the videos! Bonus points for the customer name!
An answer will be posted Monday.
All opinions expressed in this blog are those of Dave …
[Read more]
My task is to collect performance data about a single query,
using PERFORMANCE_SCHEMA
(P_S for short) in MySQL,
to ship it elsewhere for integration with other data.
In a grander scheme of things, I will need to define what performance data from a query I am actually interested in. I will also need to find a way to attribute the query (as seen on the server) to a point in the codebase of the client, which is not always easy when an ORM or other SQL generator is being used. And finally I will need to find a way to view the query execution in the context of the client code execution, because the data access is only a part of the system performance.
This is about marking a query so that it can be identified in source and attributed to its origin in the codebase.
In my scenario, I have control over the ORM or DAO. I can look at
the stack frame, identify the caller of the execute
function and put …
When doing migrations or failovers in MySQL, there is usually a need to do a topology change and repoint replica servers to obtain replication data from a different server.
For example, given servers {A, B, and C} and the following topology:
If you need to repoint C to be a replica of B, i.e:
You can follow the next steps:
Note: log_replica_updates should be enabled on the soon-to-be primary as it is a prerequisite for chain replication.
Note: It is assumed that both replicas only stream from Server A and there are no conflicting replication filters in place that might break replication later on.
If Using File/Position-Based Replication:
1) Stop B and C STOP REPLICA; 2) If replicas are multi-threaded, correct MTS gaps and make them …[Read more]
My task is to collect performance data about a single query,
using PERFORMANCE_SCHEMA
(P_S for short) in MySQL,
to ship it elsewhere for integration with other data.
In a grander scheme of things, I will need to define what performance data from a query I am actually interested in. I will also need to find a way to attribute the query (as seen on the server) to a point in the codebase of the client, which is not always easy when an ORM or other SQL generator is being used. And finally I will need to find a way to view the query execution in the context of the client code execution, because the data access is only a part of the system performance.
But this is about query execution in the server, and the instrumentation available to me in MySQL 8, at least to get things started. So we take the tour of performance schema, and then run one example query (a simple join) and see what we can find out about this query.
…[Read more]