Remove c
article thumbnail

Building High-Quality Software

DZone

It’s much better to build your process around quality checks than retrofit these checks into the existent process. NIST did classic research to show that catching bugs at the beginning of the development process could be more than ten times cheaper than if a bug reaches production. Somebody looking at your code and saying “WTF?”

Software 245
article thumbnail

Number series generator challenge solutions – Part 1

SQL Performance

The dbo.GetNumsItzikBatch function uses a dummy join to a table with a columnstore index to get batch processing. Here’s the code to create the dummy table: CREATE TABLE dbo. L0 AS ( SELECT 1 AS c. Here’s the function’s definition: CREATE OR ALTER FUNCTION dbo. L0 AS ( SELECT 1 AS c. BatchMe ON 1 = 0.

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

Setting Up MongoDB SSL Encryption

Scalegrid

This process begins with an OpenSSL configuration file, a blueprint containing details like your country, state, and organization, capped with the common name that is your server’s alias. The process continues by combining the self-signed CA certificate and private key into a single.pem file.

Servers 130
article thumbnail

Fundamentals of table expressions, Part 2 – Derived tables, logical considerations

SQL Performance

Logical query processing handles query clauses in the following order: FROM>WHERE>GROUP BY>HAVING>SELECT>ORDER BY. I just wanted to mention some use cases here to illustrate how important table expressions are in our T-SQL code, and why it's worthwhile to invest in understanding their fundamentals well.

C++ 143
article thumbnail

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

SQL Performance

I mainly experimented with different table value constructor cardinalities, with serial versus parallel processing, and with row mode versus batch mode processing. Use the following code to run a test with base CTE cardinality of 2 (requires 5 additional levels of CTEs): DECLARE @low AS BIGINT = 1 , @high AS BIGINT = 100000000 ; WITH.

C++ 114
article thumbnail

Missing Library: A pg_upgrade History

Percona

The process using pg_upgrade is well documented , and you can easily find the instructions with little googling. Following the main process, I installed the same packages as the existing version 11 to version 12 and verified. for lib in $(psql -qtA pgbench -c"select extname||'.so' ii postgresql-11 11.18-1.pgdg20.04+1

C++ 80
article thumbnail

Number series generator challenge solutions – Part 3

SQL Performance

The basic idea of the vertical unit elimination technique is that if you have a nested table expression that returns columns x and y, and your outer query references only column x, the query compilation process eliminates y from the initial query tree, and therefore the plan doesn’t need to evaluate it. BatchMe ; GO. CREATE TABLE dbo.

C++ 134