No-code Databases 101

Advanced no-code database concepts

January 9, 2023

Now that you have a basic understanding of how to create and design a database, query and filter data, and import and export data, let's delve into some more advanced database concepts.

Indexes:

An index is a data structure that is used to improve the performance of database queries. When you create an index on a field, the database stores a copy of the field's values in a separate location, along with a reference to the original record. This allows the database to quickly search and sort the data based on the indexed field, without having to scan the entire table.

There are two types of indexes: unique and non-unique. A unique index is used to enforce the uniqueness of a field, meaning that no two records can have the same value in the indexed field. A non-unique index, on the other hand, allows multiple records to have the same value in the indexed field.

To create an index on a field in Noloco or Airtable, follow these steps:

  1. Navigate to the table that contains the field.
  2. Click on the "Add index" button.
  3. Select the field that you want to index and choose whether you want to create a unique or non-unique index.
  4. Click on the "Create" button to create the index.

Indexes can be useful if you frequently search or sort your data based on a specific field. However, they can also slow down the performance of database updates, as the database has to update the index values whenever a record is inserted, updated, or deleted. Therefore, it's important to carefully consider whether an index is necessary and choose the appropriate type of index for your needs.

Triggers and Workflows:

A trigger is a piece of code that is automatically executed by the database in response to a specific event, such as the insertion, update, or deletion of a record. Triggers can be used to enforce data integrity, perform calculations, or send notifications.

In Airtable and Noloco, you can use workflows to perform tasks that are similar to triggers.

Workflows allow you to define a set of actions that should be triggered by a specific event, such as the insertion, update, or deletion of a record.

To create a workflow in Noloco or Airtable, you can use the built-in workflow editor to specify the conditions and actions that should be executed. For example, you might create a workflow that sends an email notification whenever a new customer is added to the database.

Stored procedures:

A stored procedure is a piece of pre-compiled code that is stored in the database and can be called and executed by name. Stored procedures are typically used to perform repetitive tasks or tasks that require a high degree of security.

In Airtable and Noloco, you can use workflows to perform tasks that are similar to stored procedures. Workflows allow you to define a set of actions that should be triggered by a specific event, such as the insertion, update, or deletion of a record.

To create a workflow in Noloco or Airtable, you can use the built-in workflow editor to specify the conditions and actions that should be executed. For example, you might create a workflow that updates the price of a product whenever a new price is entered in a specific field.

Replication:

Replication is the process of copying and distributing data across multiple databases or servers. Replication can be used to improve the availability and performance of the database or to create backup copies of the data.

Airtable and Noloco do not offer native replication. However, you can use integrations or APIs to sync your data with other external sources, such as cloud storage services or other databases. This can be useful if you want to automatically update your database with the latest data from another source.

To use an integration or API to sync your data with an external source in Noloco or Airtable, you can follow the instructions provided in the documentation or help section of the tool.