Fireship · @fireship
SurrealDB in 100 Seconds
Uploaded September 15, 2022 · Length 2:47
Summary
surrealDB: open-source new SQL database with multimodel paradigm, supports real-time graph, relational, and document data models.
- surrealDB
- new SQL database
- multimodel database
- graph database
- relational database
- document database
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
surreal DB an open-source new SQL
- 0:03
database that delivers every feature
- 0:05
you've ever dreamed of acid scalable
- 0:07
fulltech search real time graph
- 0:09
relational multi-tenant temporal schema
- 0:11
list schema full server list embedded
- 0:14
are all words that can describe surreal
- 0:16
DB a multimodel database that combines
- 0:18
elements of relational graph and
- 0:20
document paradigms into a simple package
- 0:22
that can be queried with an SQL like
- 0:24
language development was started by
- 0:26
Jamie and Toby Morgan Hitchcock in 2015
- 0:28
and it was open sourced in July 2022 the
- 0:31
engine is written in Rust and can
- 0:33
support multiple persistence layers like
- 0:35
tikv to scale horizontally in the cloud
- 0:37
or as a single node both in memory or on
- 0:40
disk most importantly though it can
- 0:41
handle complex relationships like
- 0:43
traditional relational databases but
- 0:45
does so without joins instead it uses
- 0:47
techniques like record links and graph
- 0:49
connections that not only handle complex
- 0:52
data models but also result in concise
- 0:54
developer friendly code by default it's
- 0:56
schema list which means you can
- 0:58
implicitly create unstructured data in
- 1:00
any table however you can opt into
- 1:02
schema full tables when the data model
- 1:04
becomes well defined it's also asset
- 1:06
compliant allowing you to run
- 1:07
transactions across multiple tables
- 1:09
which also emit events when the data
- 1:11
changes so you can listen to real-time
- 1:13
updates from a front-end application
- 1:14
kind of like Firebase and the feature
- 1:16
list goes on with things like geospatial
- 1:18
data and predefined analytics views all
- 1:20
of which can be locked down with
- 1:22
permissions out of the box to get
- 1:23
started install it on your machine then
- 1:25
run it locally with the CLI then execute
- 1:27
code using its rest API or a client
- 1:30
library for your favorite language just
- 1:31
like SQL we can use statements like
- 1:34
create to add a record to the database
- 1:36
every record has a unique ID comprised
- 1:38
of two parts the left side is the table
- 1:40
the record belongs to and the right side
- 1:42
can be whatever you want or if left out
- 1:44
it will be automatically generated and
- 1:46
now use set to define the data for that
- 1:48
record or try content for a more Json
- 1:51
like syntax now that we have some data
- 1:53
populated we can query it with a select
- 1:55
statement it supports the wear Clause to
- 1:57
filter by a condition and has a variety
- 1:59
of built-in functions like count to


