Introduction

Manipulating data in a database often requires writing lots of queries. When the same data is required in multiple places, this will probably result in duplicate code. When these queries also need to be updated, it can be an “inconvenience” to say the least.

When using ThingsDB, you can make use of something called procedures. The official definition of a procedure is: “A named closure that is attached to a scope and available to use in an API call”. But simply put, it is just a function stored in ThingsDB that you can run as many times as you want, from any supported client. This not only saves you a lot of time, it also ensures a clearer codebase and a better performance. …

About

Rob van den Boom

Software Engineer @ Transceptor Technology

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store