This UDF returns the unique ID assigned by Groonga for the last inserted record, useful for tracking internal record identifiers.
SELECT last_insert_grn_id();
+----------------------+
| last_insert_grn_id() |
+----------------------+
| 3 |
+----------------------+