Skip to content

Conversation

@adamwardecki
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Feb 2, 2018

Codecov Report

Merging #124 into master will decrease coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
- Coverage   34.49%   34.33%   -0.16%     
==========================================
  Files         118      106      -12     
  Lines        4592     3157    -1435     
==========================================
- Hits         1584     1084     -500     
+ Misses       3008     2073     -935

|array|Can hold only Strings, Integer or Floats|Cannot contain Object type (JSON fields)|
|relation|Can hold relations to max 1000 Data Objects from one selected Data Class|Relation can be linked to only one selected data class. You cannot have Relation field storing references to Data Objects from multiple different data classes.|
|object|Any JSON object|Without limits, limited only by the max size of Data Object (32kB)|
|file|binary data, max 128MB|This is a web server limit and can be worked around by sending larger files in chunks.|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not exactly true. Max http post body limit is 128MB. So you can in theory send file1 of 128MB then in another request send second file2 of 128MB to same DO. But overall you cannot have larger files than 128MB in any way.

Limits for the the Data Object fields
- Maximal size of a Data Object is `32kB`
- Data Objects can have a max of `32` fields.
- `16` of the fields can be indexed, `8` if both `order_index` and `filter_index` is used for each field; `text` and `file` fields can't be indexed).
Copy link
Member

@23doors 23doors Feb 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as noted in last PR, object cannot be indexed as well.
Also, not all fields can have order index (array, geopoint, relation) as it doesn't make sense there but not sure if this is even worth mentioning.
In relatively recent additions, there is also unique that implies filter_index=true and it cannot be applied to text, file, object (as all the other indexes) - and array, geopoint relation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'll add this info to another section on filtering and ordering which we should port from the legacy docs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

|integer|32-bit (signed)||
|float|64-bit|Double precision field with up to 15 decimal digit precision|
|array|Can hold only Strings, Integer or Floats|Cannot contain Object type (JSON fields)|
|relation|Can hold relations to max 1000 Data Objects from one selected Data Class|Relation can be linked to only one selected data class. You cannot have Relation field storing references to Data Objects from multiple different data classes.|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you can have multiple relations to circumvent that and it's not exactly a limitation, just a characteristic that relation and reference types are bound to specific class when declared.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I remove this entry altogether?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just leave it at Can hold ids of max 1000 Data Objects?

@23doors
Copy link
Member

23doors commented Feb 2, 2018

codecov doesn't seem to be correct ;)

@adamwardecki
Copy link
Contributor Author

@maciejkorsan Can you review?

@maciejkorsan
Copy link
Member

LGTM

@adamwardecki adamwardecki merged commit 8d8efab into master Feb 6, 2018
@adamwardecki adamwardecki deleted the docs/limits branch February 6, 2018 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants