Quantcast
Channel: sql – Java, SQL and jOOQ.
Browsing all 426 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

jOOQ Tuesdays: Vlad Mihalcea Gives Deep Insight into SQL and Hibernate

Welcome to the jOOQ Tuesdays series. In this series, we’ll publish an article on the third Tuesday every other month where we interview someone we find exciting in our industry from a jOOQ perspective....

View Article


Image may be NSFW.
Clik here to view.

Let’s Review How to Insert Clob or Blob via JDBC

LOBs are a PITA in all databases, as well as in JDBC. Handling them correctly takes a couple of lines of code, and you can be sure that you’ll get it wrong eventually. Because you have to think of a...

View Article


Image may be NSFW.
Clik here to view.

Do Not Think That One Second is Fast for Query Execution

I keep encountering situations where RDBMS users think that one second for query execution is anything near fast. Most recently, in this Stack Overflow question: Hibernate SQL In clause making CPU...

View Article

Image may be NSFW.
Clik here to view.

How SQL GROUP BY Should Have Been Designed – Like Neo4j’s Implicit GROUP BY

In the recent past, we’ve explained the syntactic implications of the SQL GROUP BY clause. If you haven’t already, you should read our article “Do You Really Understand SQL’s GROUP BY and HAVING...

View Article

Image may be NSFW.
Clik here to view.

jOOQ 4.0’s New API Will Use Annotations Only for Truly Declarative Java/SQL...

SQL is the only really popular and mature 4GL (Fourth Generation Programming Language). I.e. it is the only popular declarative language. At the same time, SQL has proven that turing completeness is...

View Article


Image may be NSFW.
Clik here to view.

Using SQL to Calculate the Popularity (on Stack Overflow) of Derby, H2, and...

Few people know about this very very awesome feature of the Stack Exchange platform. The Stack Exchange Data Explorer To be found here: http://data.stackexchange.com As you may know, much of the Stack...

View Article

Image may be NSFW.
Clik here to view.

jOOQ Tuesdays: Ming-Yee Iu Gives Insight into Language Integrated Querying

Welcome to the jOOQ Tuesdays series. In this series, we’ll publish an article on the third Tuesday every other month where we interview someone we find exciting in our industry from a jOOQ perspective....

View Article

Image may be NSFW.
Clik here to view.

10 SQL Tricks That You Didn’t Think Were Possible

Listicles like these do work – not only do they attract attention, if the content is also valuable (and in this case it is, trust me), the article format can be extremely entertaining. This article...

View Article


Image may be NSFW.
Clik here to view.

Correlated Subqueries are Evil and Slow. Or are They?

A common myth in SQL is the idea that correlated subqueries are evil and slow. For example, this query here: SELECT first_name, last_name, (SELECT count(*) FROM film_actor fa WHERE fa.actor_id =...

View Article


Image may be NSFW.
Clik here to view.

jOOQ Tuesdays: Thorben Janssen Shares his Hibernate Performance Secrets

Welcome to the jOOQ Tuesdays series. In this series, we’ll publish an article on the third Tuesday every other month where we interview someone we find exciting in our industry from a jOOQ perspective....

View Article

Image may be NSFW.
Clik here to view.

Turn Around. Don’t Use JPA’s loadgraph and fetchgraph Hints. Use SQL Instead.

Thorben Janssen (also known from our jOOQ Tuesdays series) recently published an interesting wrap-up of what’s possible with Hibernate / JPA query hints. The full article can be seen here:...

View Article

Image may be NSFW.
Clik here to view.

Say NO to Venn Diagrams When Explaining JOINs

In recent times, there have been a couple of tremendously popular blog posts explaining JOINs using Venn Diagrams. After all, relational algebra and SQL are set oriented theories and languages, so it...

View Article

Image may be NSFW.
Clik here to view.

“What Java ORM do You Prefer, and Why?”– SQL of Course!

Catchy headline, yes. But check out this Stack Overflow question by user Mike: (I’m duplicating it here on the blog, as it might be deleted soon) It’s a pretty open ended question. I’ll be starting out...

View Article


Image may be NSFW.
Clik here to view.

Quantified Comparison Predicates – Some of SQL’s Rarest Species

A recent Tweet by Aaron Bertrand (whom you’ve certainly encountered on Stack Overflow) has triggered my interest @SQLDBA Or the one that asks a bunch of questions about ANY / ALL syntax, which nobody...

View Article

Image may be NSFW.
Clik here to view.

How Adding a UNIQUE Constraint on a OneToOne Relationship Helps Performance

A lot of people use SQL constraints mainly to enforce data integrity, and that’s already a very good thing. A UNIQUE constraint, for instance, makes sure that there is at most one instance of any...

View Article


Image may be NSFW.
Clik here to view.

How to Know if a Given Index Can be Dropped

It seems that perfection is attained not when there is nothing more to add, but when there is nothing more to remove. – Antoine de Saint Exupéry in Terre des Hommes As SQL developers, we keep adding...

View Article

Image may be NSFW.
Clik here to view.

Say NO to Excessive Use of Surrogate Keys if Performance Really Matters to You

We programmers keep cargo culting these wrong ideas. Recently, we said “NO” to Venn diagrams. Today we’re going to say no to surrogate keys. The surrogate keys vs. natural keys non-debate is one of the...

View Article


Image may be NSFW.
Clik here to view.

Why I Completely Forgot That Programming Languages Have While Loops

I’ve recently made an embarassing discovery: @sfonplsql wha. I've never used while loops in PL/SQL. TIL — Lukas Eder (@lukaseder) July 26, 2016 Yes. In all of my professional work with PL/SQL (and that...

View Article

Image may be NSFW.
Clik here to view.

Why Most Programmers Get Pagination Wrong

Pagination is one of those things that almost everyone gets wrong for two reasons: User experience Database performance Here’s why. What’s wrong with pagination? Most applications blindly produce...

View Article

Image may be NSFW.
Clik here to view.

jOOQ Tuesdays: Chris Saxon Explains the 3 Things Every Developer Should Know...

Welcome to the jOOQ Tuesdays series. In this series, we’ll publish an article on the third Tuesday every other month (today, exceptionally on a Wednesday because of technical issues) where we interview...

View Article
Browsing all 426 articles
Browse latest View live