Skip to main content
Version: 1.0.2

Demo Data

Demo Data

To quickly test out SurrealDB and SurrealQL functionality, we've included demo data here in .surql files which you can download and import into SurrealDB using the CLI

Surreal Deal - deals so good it's surreal!

Surreal Deal is a demo dataset based on a simplified e-commerce platform that sells artwork. The dataset is made up of 8 tables using both graph relations and record links: person, order, product, review, artist, create, avg_product_review, daily_sales.

In the diagram below, the nodes in pink are the standard tables, the ones in purple represent the edge tables which shows relationships between records and SurrealDB as a graph database. While the nodes in gray are the pre-computed table views.

Download and import

Click here to download the dataset. Then start the server.

# Create a new in-memory server
surreal start --user root --pass root --allow-all

Then use the import command to add the dataset from your "Downloads" folder.

surreal import --conn http://localhost:8000 --user root --pass root --ns test --db test downloads/surreal_deal_v1.surql

Please be aware that the import process might take a few seconds.

For a step by step instructions using curl:

  1. Start the surrealdb server
# Create a new in-memory server
surreal start --user root --pass root --allow-all
  1. Create a surrealdemo folder on your desktop
cd desktop && mkdir -p surrealdemo && cd surrealdemo
  1. Download the file into the folder and load it into the database
# Download the file

curl -L "https://drive.google.com/uc?id=1AlSMBJrncEuqOtbbEXLqtenUb0Z5BjlD&export=download" -o surreal_deal_v1.surql

# Load the file into the database using the rest endpoint

curl -v -X POST -u "root:root" -H "NS: test" -H "DB: test" -H "Accept: application/json" --data-binary @surreal_deal_v1.surql http://localhost:8000/import