By Clay Li on Thursday, 16 December 2021
Category: Feature

Tips for Custom Fields and InnoDB Row Size Limit

Custom fields can be added to a Calem standard table. The screenshot shows the Calem Designer form with the menu to add custom fields to asset table. This blog discusses the best practice in adding custom fields in Calem. The tips are most useful when there are many custom fields to be designed and added.

 1. InnoDB Row Size Limit

InnoDB engine is used by Calem in MariaDB and MySQL. It allows row based locking and transactional management which is critical for enterprise grade applications such as Calem Enterprise. There are row size limits in InnoDB. Database admins need to take this into consideration when designing custom fields.

2. Rules for Custom Fields

The rules below may be followed when designing custom fields in Calem. They help reduce the chances of running into the size limits discussed above.

2.1 Dropdown and Lookup Fields

Both dropdown and lookup types are supported in Calem custom fields. They are of the most efficient ways to add custom fields regarding size limit. Additionally, they are important for better data integrity. See this blog for more info. 

2.2 TEXT Fields

2.3 Field Length for Varchar Types

This point may be counterintuitive. Increasing field length for varchars type fields allows one to add more fields.​

2.4 Dynamic Row Format

Row format is the first step to address the issue.

2.5 Strict Mode

InnoDB strict mode (innodb_strict_mode) will turn warnings into errors. It is enabled by default.


Additional resources