Limits

Learn about the limits which emphasize Stacklane best practices.

Stacklane's limits are designed to emphasize best practices for using the platform, not make your life difficult. For every limit there is usually an alternative approach with better long term scale and maintenance characteristics.

For example, the size of a repository is limited to emphasize its use as controller and view, and not as a way to serve large files, or model-like content. Lists of embedded entries are limited to emphasize using containers for cases that may call for unbounded entries. And so on.

Limit Amount
Repository: Source Code
Size of the source code only — static assets, endpoints, config, etc. This does not refer to model data storage.
5 MB
Repository: Image Count
Repository images are primarily for styling / decoration / theme and are not related to model data images.
50
Model: Total Number of Entries Unlimited
Model: Field and Model Type Name Length 20 chars
Model: Field Count
Extendable using embedded field types, as long as the provisioned size for the type is not exceeded.
20
Model: Embedded List Entries
The maximum number of embedded entries in a multi-valued field. Typically this will be customized to a lesser value, to reduce the total provisioned size. For unbounded one-to-many associations use containers.
20
Model: Field Type Size
Choose the right field type for the job.
Varies
Model: Provisioned Size

The sum of all provisioned field sizes. Exceeding the provisioned size of a model type will be determined during compile/build time, ensuring that during runtime there are zero surprises.

Universal Type
Content Type
Event Type
User Profile Type

20KB
200KB
20KB
20KB

Model Provisioned Size

A model type's total provisioned size is the sum of the provisioned size for each field defined for the model. Stacklane determines the provisioned size of a model at compile time, ensuring that during runtime there are zero surprises.

Type Provisioned Size
string 4 x max characters (400 bytes by default)
boolean 1 byte
integer 8 bytes
double 8 bytes
timestamp 8 bytes
options 50 bytes
country 3 bytes
geo 16 bytes
image 100 bytes (independent of image size)
hierarchy 50 bytes
svg-icon 2000 bytes
uid 100 bytes
markdown 4 x max characters (8,000 bytes by default)
Embedded Sum of field sizes (x times number of possible entries)