Remove c
article thumbnail

Is ANALYZE TABLE Safe on a Busy MySQL Database Server?

Percona

version, like this: ANALYZE TABLE removes the table from the table definition cache, which requires a flush lock. This makes the query wait for any long-running queries to finish but also can trigger cascading waiting for other incoming requests. In short, ANALYZE could lead to nasty stalls in busy production environments.

Servers 93
article thumbnail

Using Jobs to Perform Schema Changes Against MySQL Databases on K8s

Percona

Copyright (c) 2009-2023 Percona LLC and/or its affiliates Copyright (c) 2000, 2023, Oracle and/or its affiliates. Type 'c' to clear the current input statement. mysql> create database if not exists atsaloux; Query OK, 1 row affected (0.02 Type 'c' to clear the current input statement. drop_triggers:10000:0.25,copy_rows:10000:0.25,swap_tables:10000:0.25,update_foreign_keys:10000:0.25,analyze_table:10000:0.25

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Missing Library: A pg_upgrade History

Percona

While working as a DBA, we perform many regular tasks, and one of them is upgrading our database systems. There are some techniques to perform a PostgreSQL database upgrade, such as data dump and import, logical replication, or in-site upgrade using pg_upgrade. for lib in $(psql -qtA pgbench -c"select extname||'.so'

C++ 81
article thumbnail

T-SQL Windowing Improvements in SQL Server 2022

SQL Performance

I’ll be using the sample database TSQLV6 in the examples in this article. You can download this sample database here. This clause is now available in Azure SQL Database and SQL Server 2022, provided you use database compatibility level 160 or higher. In this article I focus on windowing and NULL-related improvements.

Servers 145
article thumbnail

Masquerade Your Backups To Build QA/Testing Environments With MyDumper

Percona

During export, mydumper sends SELECT statements to the database. Then, each key-value entry will keep in the key the column name surrounded by backticks, and the value will be the masking function definition. mydumper -o data -B test --defaults-file=mydumper.cnf -r 100000 -c real 0m19.964s user 0m48.396s sys 0m7.885s It took near 19.9

Testing 102
article thumbnail

Setting Up MongoDB SSL Encryption

Scalegrid

In a world where data security is essential, enabling MongoDB SSL is critical in fortifying your database. Each section is crafted to elevate your database’s security protocol, from acquiring the necessary SSL certificates to configuring server and client connections.

Servers 130
article thumbnail

The challenge is on! Community call for creating the fastest number series generator

SQL Performance

You can create supporting tables in the user database if needed. Requirements: Implement your solution as an inline table-valued function (iTVF) named dbo.GetNumsYourName with parameters @low AS BIGINT and @high AS BIGINT. As an example, see the ones I submit at the end of this article. You can add hints as needed.

C++ 114