Slim3 Datastore is a type-safe thin wrapper of Datastore Low level API. Low level API is faster and easier to learn than JDO/JPA, because it is specialized for Bigtable.
A type-safe query of Slim3 is as follows:
A meta data of model like EmployeeMeta is created by Annotation Processing Tool automatically.
An equivalent JDO query is as follows:
If you use a query based on string, a compiler can not report an error when refactoring the property name.
If you use a type-safe query, when you rename "salary" property, a compiler will tell you "salary" no longer exists, because the meta data of the model is recreated by Annotation Processing Tool when refactoring.
Slim3 Datastore creates mapping logics between a entity and a model as the source code in the meta data of the model when compiling. The following code is a part of BarMeta:
Slim3 Datastore does not need runtime reflection for mapping between a entity and a model, so Slim3 Datastore is faster than JDO.
To retrieve 10,000 simple entities, Slim3 takes around 4,000 millis, JDO takes around 12,000 millis.
See online demonstration.
This reference describes the Slim3 Datastore API. It has the following sections: