Help › Explore a database
Browse a DynamoDB table's items
Read a DynamoDB table's items by partition key and sort key, through an index, or by scanning with a limit, and see what each read consumed.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
An items tab shows the items of one DynamoDB table: a row of fields that say what to read, a line that says what is on screen and what it cost, and the items in the same grid as any query's results.
To open one, double-click a table under Tables in the sidebar, or select it and choose . Nothing is read when the tab opens: DynamoDB bills for what is read, so reading starts when you ask.
Choose what to read
The first menu chooses how:
- Query reads the items of one partition key value. Type the value in
the field named after the partition key. When the key has a sort key,
the menu named after it narrows the read: any,
=,<,<=,>,>=, between two values (both included) or begins with. Descending returns the items in descending sort key order. - Scan reads the table itself, item after item, up to Limit (500 unless you type another number).
Through chooses the key to read by: the table's own, or one of its secondary indexes, listed with what each is keyed by. An index has a partition key and a sort key of its own, so the fields change with it.
Limit is the most items to read in all. A query without a limit reads on as you scroll; a scan always has one.
Press the Query or Scan button, or ↩ on macOS or Enter on Windows and Linux in a field, to read. is the same command, and is the Descending button. While a read runs, Cancel stops it.
Values are typed as they are, without quotes. A number key takes a number and a binary key takes base64; a value that does not fit the key's type is refused before anything is sent.
What a read costs
DynamoDB bills a read by the items it passes, not by the items it returns.
- A query passes only the items of its partition key that match the sort key condition. It is the cheap way to read, and the only one that stays cheap as a table grows.
- A scan passes every item until its limit is reached, whatever the table holds. On a large table a scan to the end reads, and bills for, the whole table.
Querlyn keeps reads small in three ways. It reads a page at a time, as many items as the grid asks for, and reads the next page only when you scroll to it. A scan stops at its limit. And the line under the fields says what the read on screen consumed so far, as DynamoDB reported it: the read capacity units and the number of requests. A scan is marked Scan: billed for every item passed. The same figures are in the result's Messages.
Note: Exporting every row of a result, or scrolling to its end, reads all of it.
Scans ask first
On a connection whose environment is Production, Scan asks before it reads: the question says how many items the scan may pass and about how many items and bytes the table holds. Ask before a scan in the connection's settings changes when Querlyn asks: on Production, always or never. See Connect to Amazon DynamoDB.
Read the items
Each item is a row. The key attributes come first, then the other attributes by name. Items of one table need not have the same attributes: a cell is empty where an item has no such attribute, which is not the same as an attribute that holds null. When later pages bring attributes the first page did not have, they are kept in a last column, Other attributes.
Every DynamoDB type is shown as it is:
| Type | In the grid |
|---|---|
String (S) | Text |
Number (N) | The number with every digit DynamoDB holds, never rounded |
Binary (B) | Bytes |
Boolean (BOOL), null (NULL) | true or false; NULL |
Map (M), list (L) | JSON; open it in the value viewer to see it as a tree |
String set, number set, binary set (SS, NS, BS) | JSON with a marker: {"$stringSet": […]}, {"$numberSet": […]}, {"$binarySet": […]} |
Inside a map or a list, bytes are written {"$binary": "…"} in base64,
and a number with more digits than JSON numbers keep is written
{"$number": "…"} so that none is lost. The line under a column's name
says the types seen in it.
Everything the results grid does works here: the record view, the value viewer, sorting and filtering the loaded rows, copying and exporting them. The grid's cells cannot be typed in; to change an item, see Change a DynamoDB item.
The table's details
Details shows the table's key, about how many items it holds and how large it is, its indexes and its settings beside the items. is the same command, and (the Read Again button) reads them afresh. Reading them costs nothing.
Help for Querlyn 0.1.0. All help topics