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.

SpreadsheetGeneral-purpose databaseAgriQL 3.10.1
What a number isA number or textA number or textA measurement. Incompatible units are rejected.
Millimetres plus kilogramsAllowedStored, and added if you askRejected. They are not the same kind of quantity.
Millimetres plus metresYou convert themYou convert themAccepted. Both are length.
A season of recordsOften several workbooksA server, or a file with no agricultural meaningOne .aqdb file.
A summaryFormulas across cellsSQL, including joins of many tablesFilter and aggregate one table: count, minimum, maximum, average, standard deviation.
Joining tablesManualYesNot in this release.
Excel, CSV, JSONExcel is the fileDepends on the productCSV, TSV, JSON, and Excel can be imported and exported.
Parquet, or a sheet that lives only onlineNoSometimesNot accepted.
Empty values and odd numbersYou lookYou write the checkPROFILE reports them. SERIES … ON counts gaps in a time column.
Python and RThey read the sheetThey use a driverThey 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 databaseAgriQL field-device logger (in development)
Where it runsA device with a file system, or a storage layer written for itA server or a gatewayThe microcontroller itself, on its raw flash memory, with no file system
Size on a Cortex-M chipMuch larger than a small sensor chip usually allowsDoes not run thereAbout 14 KiB of program, and 1 to 2 KiB of RAM including stack
Power lost mid-writeHandled through its journal and the file systemHandled on the serverTested against simulated power cuts. After power returns, the log resumes from the last complete block.
Device and serverUsually two different formatsData is reshaped when it arrivesThe server reads the format the device wrote
The device's clockWhatever time the device writesWhatever time arrives with the readingThe 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 readingYou write the checkYou write the checkAutomatic checks flag it when it is read. The reading itself is kept as it was recorded.
Measured costDepends on the productDepends on the productAbout 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.