Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Introduction to Databases for HEP

An HSF Training lesson on databases with applications in High Energy and Nuclear Physics

Experiments in High Energy Physics (HEP) and Nuclear Physics produce far more than event data. File catalogs, run bookkeeping, detector calibrations and alignments, and collaboration records all need to be stored, searched, and kept consistent, often by many people and services at once. Databases are the tool for this job.

This lesson introduces database fundamentals through hands-on examples from HEP. You will work with a relational database (MySQL), a lightweight embedded database (SQLite), and a document-oriented NoSQL search engine (OpenSearch). Along the way you will build a small metadata catalog for experiment files and model a simplified conditions database.

What you will learn

By the end of this lesson you will be able to:

Getting started

Follow the instructions on the Setup page before starting with the chapters.