Remove c
article thumbnail

Why you should benchmark your database using stored procedures

HammerDB

HammerDB uses stored procedures to achieve maximum throughput when benchmarking your database. HammerDB has always used stored procedures as a design decision because the original benchmark was implemented as close as possible to the example workload in the TPC-C specification that uses stored procedures. What is a stored procedure?

article thumbnail

Additional T-SQL 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. One of the complexities that is of a specific importance to this section is comparisons that potentially involve NULL comparands, such as ones that you use in filter and join predicates. The Distinct Predicate.

Servers 142
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

MariaDB vs MySQL: Key Differences and Use Cases

Percona

In this blog, we’ll provide a comparison between MariaDB vs. MySQL (including Percona Server for MySQL ). Before we dive into the differences between MariaDB and MySQL, we will provide a thorough examination of each relational database management system (RDBMS). What is MariaDB? Enhanced security is another advantage MariaDB.

article thumbnail

NULL complexities – Part 1

SQL Performance

Even among people who do have a good grasp of relational theory and SQL, you will hear very strong opinions both in favor and against using NULLs in your database. I start with coverage of what NULLs are and how they behave in comparisons. In my examples I'll use a sample database called TSQLV5. Comparisons involving NULLs.

article thumbnail

NULL complexities – Part 3, Missing standard features and T-SQL alternatives

SQL Performance

In Part 1 I covered the meaning of the NULL marker and how it behaves in comparisons. I'll continue using the sample database TSQLV5 like last month in some of my examples. I'll continue using the sample database TSQLV5 like last month in some of my examples. Here's the complete solution code: WITH C AS. (

C++ 120
article thumbnail

Deprecated features to take out of your toolbox – Part 3

SQL Performance

Let's create a simple database with a few tables: CREATE DATABASE BadIdeas ; GO. name , [ Column ] = c. name , [ Data Type ] = TYPE_NAME ( c. system_type_id <> c. THEN N' (' + TYPE_NAME ( c. columns AS c INNER JOIN sys. objects AS o ON c. [ USE BadIdeas ; GO.

C++ 58
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