Hi everyone,
I wanted to provide a quick update for Complex Queries through Custom Entities.
Firstly, we have locked in April 2023 as a target release for the EAP.
Secondly, there are a few changes; however the experience remains close to what we shared earlier. The changes are:
- We are removing the
partition
method in favor of passingpartition
as an optional parameter to theindex
method - The
Range
method has been renamedWhere
- Sorting is no longer a parameter, but a function named
sort()
- We have added support for the data type Integer
- The Float type is currently not supported for Indexing operations. We expect to solve this by the EAP release in April; if not, we will rectify this soon after with a release
-
Partition
can now be multi keyed -
filter()
is now broken down for convenience:- orFilter()
- andFilter()
- The objects you can store as a custom entity can have a maximum depth of 31
- The attributes you can use with custom entity can have a maximum size of 240KB
- The format for defining attributes has changed slightly and now looks like this:
1entities:
2 - name: 'product'
3 attributes:
4 brand:
5 type: 'string'
6 price:
7 type: 'float'
8 indexes:
9 - 'price' # 'simple' index on attribute 'price'
10 - name: 'by-brand' # 'named' index on attribute 'brand'
11 range:
12 - 'brand'
13 - name: 'by-brand-and-price' # 'named' index with partition
14 range:
15 - 'price'
16 partition:
17 - 'brand'
18
We will be sharing more details and any additional changes as we move closer to the EAP release.
Please keep an eye on this space to get more details about how to participate.
We are really excited to get this in your hands soon and start receiving your valuable feedback.
Thank you!