Skip to main content
prabhakarank847990
August 22, 2024
Question

Limit for Entities in Data store

  • August 22, 2024
  • 6 replies
  • 0 views

Helo......

Just curiosity, what is the limit or best number for entities that can be added in one Data store, I searched in docs but can't able to find the answer.

Thanks in advance 

6 replies

kumara0180
August 22, 2024

I am also not sure, but now you have made me curious as well. Let's see if someone reply to this question. 

stefanhelzle0001
August 22, 2024

I am not aware of a limit. How many entities do you plan to add?

prabhakarank847990
August 22, 2024

Around 50 entities in one Data store in future it could scale higher ....................

joannas0004
August 22, 2024

Adding to that question - what could be the possible consequences of having many entities in one data store instead of dividing it into many stores? Could that have impact on performance?

csteward
August 22, 2024

My largest Data Stores have between 30-40 Entities.  I haven't run into any technical issues here as far as performance or connection limitations, etc. 

The only 'annoyance' I've had with this setup was somewhere between Appian 22.x and 23.x, there was a change in the default column expectation for boolean CDT values.  Previously, simple CDT configurations such as below would successfully map to bit values in the database (MSSQL):

In Appian 23.x, these now expected the underlying data configurations to be tinyint instead, preventing the data store from publishing due to a mismatch (legacy configuration still worked in production, but could not be changed until all satisfied new validation).  This required all CDTs mapped to entities containing boolean values to be updated explicitly as below:

      
        
          @Column(name="approvalCompleted", columnDefinition="bit NULL")
        
      

Not a big change, but this required updates to all 30 entities before updates to 1 could be published.  If other entities were under separate development cycles, this would become annoying.

Additionally, security can be configured at the Data Store level, grouping together prevents independent security configurations, if necessary.

For these reasons, and potential connection limitations, I recommend splitting into a few Data Stores to keep the entity counts reasonable.