AgriQL · Documentation · Compared
How AgriQL differs
A spreadsheet and a general-purpose database will both hold farm tables. AgriQL is narrower. The differences below are what version 3.10.1 actually does. They are not a claim that AgriQL is faster, or that it replaces every other system.
| Spreadsheet | General-purpose database | AgriQL 3.10.1 | |
|---|---|---|---|
| What a number is | A number or text | A number or text | A measurement. Incompatible units are rejected. |
| Millimetres plus kilograms | Allowed | Stored, and added if you ask | Rejected. They are not the same kind of quantity. |
| Millimetres plus metres | You convert them | You convert them | Accepted. Both are length. |
| A season of records | Often several workbooks | A server, or a file with no agricultural meaning | One .aqdb file. |
| A summary | Formulas across cells | SQL, including joins of many tables | Filter and aggregate one table: count, minimum, maximum, average, standard deviation. |
| Joining tables | Manual | Yes | Not in this release. |
| Excel, CSV, JSON | Excel is the file | Depends on the product | CSV, TSV, JSON, and Excel can be imported and exported. |
| Parquet, or a sheet that lives only online | No | Sometimes | Not accepted. |
| Empty values and odd numbers | You look | You write the check | PROFILE reports them. SERIES … ON counts gaps in a time column. |
| Python and R | They read the sheet | They use a driver | They return rows from AgriQL. They are not a second database. |
On a narrow screen, move the table sideways. The first column stays in place.
At the field device
The table below is about the sensor node itself: the small chip in the field that takes the reading. The AgriQL column describes the field-device logger in development after 3.10.1. It is not part of the 3.10.1 release.
| Embedded SQL database (such as SQLite) | Time-series database | AgriQL field-device logger (in development) | |
|---|---|---|---|
| Where it runs | A device with a file system, or a storage layer written for it | A server or a gateway | The microcontroller itself, on its raw flash memory, with no file system |
| Size on a Cortex-M chip | Much larger than a small sensor chip usually allows | Does not run there | About 14 KiB of program, and 1 to 2 KiB of RAM including stack |
| Power lost mid-write | Handled through its journal and the file system | Handled on the server | Tested against simulated power cuts. After power returns, the log resumes from the last complete block. |
| Device and server | Usually two different formats | Data is reshaped when it arrives | The server reads the format the device wrote |
| The device's clock | Whatever time the device writes | Whatever time arrives with the reading | The device keeps its own time and records clock checks. The real time of each reading is worked out later, with a stated error. |
| A doubtful reading | You write the check | You write the check | Automatic checks flag it when it is read. The reading itself is kept as it was recorded. |
| Measured cost | Depends on the product | Depends on the product | About 1,500 instructions and under 6 bytes of flash per soil reading, on emulated Cortex-M3, Cortex-M4, and RISC-V boards. Benchmarks |
The embedded database and time-series database columns describe each category in general, not one product's exact limits. No other store was benchmarked under the same conditions.
Choose a general-purpose database when you need joins, many applications, or a format AgriQL does not read. Choose AgriQL when the risk is mixing up agricultural measurements, or losing the season across files that no longer agree.