Skip to content

Commit

Permalink
Documents info for root system information (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-keller authored Jan 13, 2025
1 parent 8017acb commit 6dcffdf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/content/doc-surrealql/statements/info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ There are a number of different `INFO` commands for retrieving the configuration
## System information

### Root information
The top-level ROOT command returns information regarding the users and namespaces which exists within the SurrealDB system.
The top-level ROOT command returns information regarding:
- The users and namespaces which exists within the SurrealDB system.
- The memory allocated by SurrealDB itself. Note that this may not match what the operating system reports, as it also includes memory consumed by third-party libraries or pre-allocated memory.
- The level of parallelism: This number indicates the number of available hardware threads.

> [!NOTE]
> You must be authenticated as a top-level root user to execute this command.
Expand All @@ -48,6 +51,10 @@ INFO FOR ROOT;
"namespaces": {
"ns": "DEFINE NAMESPACE ns"
},
"system": {
"memory_allocated": 57844023,
"parallelism": 12
},
"users": {
"example": "DEFINE USER example ON ROOT PASSHASH '$argon2id$v=19$m=19456,t=2,p=1$S8ggGUFSZY9B6+ZUJADNAw$jcFYLOrx1tq+/YlVk63QNZcP+VbsGD8lpFPvM59aZF4' ROLES OWNER"
}
Expand Down Expand Up @@ -281,4 +288,4 @@ INFO FOR TABLE user STRUCTURE;
lives: [],
tables: []
}
```
```

0 comments on commit 6dcffdf

Please sign in to comment.