RAM & Disk IO Optimization
RAM and Disk IO Optimization refers to the process of improving the performance of a computer system by optimizing the usage of Random Access Memory (RAM) and disk Input/Output (IO) operations. This can be achieved through various techniques such as caching and reducing disk IO operations by using triggers – both are techniques used in TURBOARD to improve overall performance.
Triggers are a set of instructions that automatically execute in response to specific events, such as changes to the data in a database. By using triggers, the frequency of disk IO operations can be reduced.
Admin users can set triggers when managing the fields in data tables. The data source connection can also have cache enabled when established.

TURBOARD's RAM & Disk IO Optimization Strategy
The above flowchart demonstrates the optimization strategy for enhancing performance and resource utilization by using a combination of caching and triggers within TURBOARD's platform. This strategy is designed to efficiently manage and utilize system resources, thereby improving the overall performance of the platform.
Trigger Mechanism
The trigger is a critical component in this optimization process. It is defined as any field belonging to the table(s) of the view, which can be used to compare the latest cache date and its maximum value. This comparison helps in determining whether the cached data is still valid or if it needs to be refreshed. By setting a trigger, the system can intelligently decide whether to use the existing cache or to fetch new data from the database, thus minimizing unnecessary database hits.
Caching Enabled
When caching is enabled, the system first checks if a cache exists. If a cache is found, it then verifies whether the cached data is still fresh based on the trigger field. If the cache is fresh, the results are fetched directly from the RAM, significantly reducing the time required to retrieve the data. This process ensures that frequently accessed data is readily available, thereby speeding up query responses and enhancing the user experience.
Cache Freshness
The concept of cache freshness is pivotal in ensuring data integrity and performance optimization. The system continually monitors the cache's freshness against the trigger field. If the cache is deemed fresh, it is used for data retrieval; if not, the system performs a database hit to obtain the latest data. This dynamic approach ensures that the data presented to the user is both current and quickly accessible.
Database Hits and Result Caching
In scenarios where caching is not enabled or the cache is not fresh, the system performs a database hit to fetch the required data. Once the data is retrieved, it is cached in RAM for future access. This dual approach ensures that while the latest data is always available, repeated database hits for the same data are minimized, thus optimizing disk IO and reducing latency.
Advantages of RAM & Disk IO Optimization Strategy
Implementing this optimization strategy offers several advantages. It eliminates unnecessary database hits for unchanged results, optimizes the use of RAM and disk IO, and provides faster visualization for consecutive accesses. By intelligently managing data retrieval and caching, TURBOARD ensures that system resources are used efficiently, leading to improved performance and a better user experience.
Note
- Trigger Field: The trigger field should be of the “date & time” type to accurately track data changes and cache validity.
- Multiple Accesses: If the system experiences multiple accesses to the same results within the data refresh frequency, setting a trigger becomes highly beneficial. It ensures that the cached data is used effectively, reducing the need for repeated database queries.