Leanpub Header

Skip to main content

MonetDB on Ubuntu

From installation to full power

Learn how to install, configure, and use the MonetDB analytical database on Ubuntu Linux. This practical guide walks through real examples and command-line workflows, helping you quickly understand how MonetDB works and how to use it effectively for analytical SQL workloads.

Minimum price

Free!

$19.99

You pay

$19.99

Author earns

$15.99
$
You can also buy this book with 1 book credit. Get book credits with a Reader Membership or an Organization Membership for your team.
PDF
About

About

About the Book

MonetDB on Ubuntu

From Installation to Full Power

This book is a practical guide to installing and working with MonetDB, a high-performance open-source column-store database designed for analytical workloads.

The book focuses on running MonetDB on Ubuntu Linux, covering installation, configuration, database management, and practical SQL usage. All examples are designed to be reproducible on a standard Ubuntu system.

Although the book contains 205 pages, it is designed in a large 30 × 50 cm format, allowing each page to deliver far more content than a standard-sized book. This means you are getting a significantly greater amount of material—comparable to several hundred pages in a traditional format—packed with practical examples, detailed explanations, and hands-on guidance. The large format makes it easier to follow complex topics, ensuring a clearer and more immersive learning experience while maximizing the value of every page.

Every section in this book is paired with a YouTube video that walks through the same material in a practical, hands-on demonstration. Altogether, the video content spans approximately 18 hours, giving you a complete learning experience that goes far beyond a traditional book. You are not just reading—you are watching, following, and applying the concepts step by step. For best results, start with the video to see the workflow in action, and then use the book as a structured guide to reinforce and deepen your understanding.

youtube playlist

In addition to YouTube, all videos are also available on Odysee for those who prefer an alternative platform. Odysee provides the same content, with the added benefit that videos can be downloaded for offline viewing. This can be especially useful if you want to study without an internet connection or keep a local copy of the material for future reference.

odysee playlist

For subtitles and additional material please visit this GitHub page:

github

Topics covered include:

  • Installing MonetDB on Ubuntu
  • MonetDB server and database management
  • Using the MonetDB command-line tools
  • SQL queries for analytical workloads
  • Understanding MonetDB's columnar architecture
  • Loading and querying datasets
  • Working with MonetDB clients
  • Basic benchmarking and performance exploration

The goal of this book is to provide a clear, practical introduction to MonetDB while also helping readers understand how the system works internally.

The book is intended for:

  • developers
  • data engineers
  • database administrators
  • analysts interested in analytical databases

No prior experience with MonetDB is required, although basic familiarity with SQL and Linux is helpful.

The examples and explanations focus on practical usage rather than theory, making the book suitable for both learning and experimentation.

MonetDB on Ubuntu

Publication date ‏ : ‎ March 17, 2026

Edition ‏ : ‎ 1st

Format : PDF

Language ‏ : ‎ English

Print length ‏ : ‎ 205 pages

ISBN ‏ : ‎ 978-86-908978-0-3

Dimensions ‏ : ‎ 30 x 50 cm

Table of Contents

0000 MonetDB Introduction.......................................6

0005 MonetDB Benchmark..........................................9

0010 Install MonetDB Server on Ubuntu Linux....................13

0020 SystemD, Monetdbd, Mserver5: Clarification ...............17

0030 Systemd Unit File, MonetDB Sample Database ...............20

0040 Connect to MonetDB from Python............................24

0050 MonetDB – Identifiers and Constants.......................26

0060 MonetDB – Data Types .....................................28

0070 Working With Temporal Data Types in MonetDB ..............30

0080 MonetDB – Serial Data Type and Sequences .................33

0090 JSON and UUID Data Type in MonetDB .......................36

0100 MonetDB – URL and Network Data Types .....................38

0110 CREATE TABLE in MonetDB ..................................41

0120 SELECT Statement in MonetDB...............................43

0130 MonetDB – SQL Joins ......................................46

0140 MonetDB – SET operators...................................49

0150 Having, Insert, Update, Delete and Built-in Variables.....52

0160 Subqueries in MonetDB.....................................55

0170 Sampling, Analyze, Prepare in MonetDB ....................58

0180 SQL Merge in MonetDB......................................60

0190 Common Table Expressions (CTE) in MonetDB ................62

0200 MonetDB: Window Functions Theory .........................64

0210 Aggregate Functions and Logical Functions.................67

0220 Window Functions Syntax ..................................70

0230 Aggregate Window Functions................................73

0240 Ranking Window Functions in MonetDB ......................75

0250 Offset Window Functions in MonetDB .......................78

0260 Mathematical Functions in MonetDB ........................81

0270 String Functions in MonetDB...............................84

0280 Comparison Functions in MonetDB ..........................88

0290 Transactions in MonetDB ..................................90

0300 Indexes and Views in MonetDB..............................94

0310 Schemas in MonetDB........................................97

0320 Constraints and Altering of Tables in MonetDB............100

0330 Loading Data Using SQL in MonetDB and Timing ............104

0340 Loading from CSV files into MonetDB .....................107

0350 Exporting Data and Binary Files in MonetDB ..............110

0360 Loader Functions in MonetDB .............................112

0370 Temporary Tables in MonetDB..............................114

0380 Merge Tables in MonetDB..................................117

0390 Unlogged tables in MonetDB...............................121

0400 Custom Functions in MonetDB part 1.......................123

0410 Custom Functions in MonetDB part 2.......................126

0420 Custom Functions in MonetDB part 3.......................129

0430 Python UDFs in MonetDB...................................132

0440 Procedures in MonetDB....................................135

0450 Triggers in MonetDB......................................138

0460 Users and Privileges in MonetDB part1....................142

0470 Users and Privileges in MonetDB part2....................146

0480 Distributed Queries in MonetDB ..........................150

0490 Grouping Sets and Comments in MonetDB....................154

0500 Proto_loaders, ODBC and COPY in MonetDB .................158

0510 JDBC, Recursive CTEs, New Functions in MonetDB...........163

0520 CHECK, RETURNING and Other in MonetDB ...................167

0530 Self Signed TLS with Stunnel for MonetDB ................170

0540 Backing up the MonetDB Database..........................175

0550 File and Hot Backup in MonetDB...........................179

0560 Monetdbd for Monetdb.....................................181

0570 Monetdb – Database Administration Tool...................185

0580 Mclient for MonetDB .....................................190

0590 System, Session Procedures and Queries Que ..............195

0600 Running MonetDB in Docker Container......................199

Videos

Number of videos ‏ : ‎ the same as sections in the book

Total duration ‏ : ‎ 18 hours

Video resolution : 1080p

Platforms ‏ : ‎ YouTube, Odysee

Subtitles ‏ : ‎ Available on YouTube and via GitHub

Downloads ‏ : ‎ Videos available for download on Odysee

Share this book

Categories

Author

About the Author

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub