Skip to main content
Need help generating SQL? Use Claude Code or Cursor with the RisingWave MCP server to generate and run SQL interactively.

Step 1: Start RisingWave

For convenience, this quick start guide uses the standalone deployment mode.
Not sure which installation method to use? See Deployment modes overview for a comparison of all options.

Script installation

Open a terminal and run the following curl command.
To start a RisingWave instance, run the following command.

Docker

Ensure Docker Desktop is installed and running in your environment.

Homebrew

Ensure Homebrew is installed, and run the following commands:

Step 2: Connect to RisingWave

Ensure you have psql installed in your environment. To learn about how to install it, see Install psql without PostgreSQL. Open a new terminal window and run:
Instead of using the command line, you can also use the RisingWave Console, a web-based interface for managing and querying your RisingWave cluster. The console provides a visual way to run SQL queries, monitor cluster health, explore database schemas, and execute operational commands through an intuitive web interface.

Step 3: Insert some data

RisingWave supports both direct data insertion and streaming data ingestion from sources like message queues and database change streams. To keep things simple, we’ll demonstrate the approach of direct data insertion. Let’s create a table and insert some data. For instance, we can create a table named credit_card_transactions to store information about credit card usage.
Create the table
Insert five rows of data

Step 4: Analyze and query data

Next, we will detect potentially fraudulent behavior by identifying any card that spends more than $5000 within a one-minute window. To do this, we’ll use a materialized view. A materialized view in RisingWave is not a static snapshot or a one-time query. Instead, it’s a continuously maintained result that automatically stays up to date as new data arrives. You can think of it as a live dashboard behind a SQL query.
Create a materialized view that detects high-spending cards in 1-minute windows
When this materialized view (MV) is created, RisingWave starts tracking it immediately. You don’t need to refresh or re-run the query manually. Any future insertion into credit_card_transactions will automatically update fraud_alerts.
Query the current result
At this point, no fraud alert is triggered yet. Let’s insert one more transaction to push card_123 over the $5000 threshold.
Insert additional data to trigger fraud alert
Query the updated result
As you can see, the MV is automatically updated when new data is inserted. You don’t need to manage any refresh logic or manual updates. RisingWave handles the incremental computation for you in the background.

What’s next?

Congratulations! You’ve successfully started RisingWave and conducted some initial data analysis. To explore further, you can: