<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">

scientificarticle.page.titleprefix
Operation Optimization in Salesforce Based on the Unit of Work Pattern: An Architectural Approach to Transactional Change Consolidation

custom.publicationoriginІноземні наукові видання
dc.contributor.authorAndrushchak, Igor
dc.contributor.authorBandach, Heorhii
dc.date.accessioned2026-12-02T14:48:11Z
dc.date.issued2026
dc.description.abstractThe article presents a method for optimizing Data Manipulation Language (DML) operations on the Salesforce platform based on the Unit of Work architectural pattern. The multi-tenant architecture of the Salesforce platform imposes strict constraints on the number of DML operations within a single transaction: a maximum of 150 statements for the synchronous execution context. As business logic complexity and trigger handler count grow, each handler independently executes its own insert, update, and delete operations, causing linear growth of DML resource consumption and increasing the risk of transaction failures. The paper formalizes a mathematical model of DML operation consumption describing the dependency of statement count on the number of active handlers, the number of object types, and the transactional coupling coefficient. The proposed method introduces a centralized change management layer that accumulates all pending data modifications from business handlers in a change registry and executes them in consolidated form at the end of the transaction while respecting dependency ordering between objects. It is proven that under the Unit of Work pattern, the DML statement count is determined solely by the number of unique combinations of object type and operation kind and does not depend on the number of business handlers, which provides mathematically guaranteed compliance with platform constraints. Experimental validation was conducted in a Salesforce Developer Edition environment on a test bench with five business handlers during bulk processing of 200 records. Experimental results confirmed a 73% reduction in DML statement count compared to the traditional approach, a 42% reduction in transaction execution time, and a 28% reduction in CPU time consumption. The proposed method, combined with the previously developed data access centralization methodology, forms a complete approach to transactional resource management covering both data read and data write operations.
dc.identifier.citationAndrushchak I., Bandach H. Method of DML Operation Optimization in Salesforce Based on the Unit of Work Pattern: An Architectural Approach to Transactional Change Consolidation. Cybersecurity: Education, Science, Technique. 2026. No. 3 (35). P. 64–70. DOI: https://doi.org/10.28925/2663-4023.2026.35.1322.
dc.identifier.doihttps://doi.org/10.28925/2663-4023.2026.35.1322
dc.identifier.urihttps://repository.lntu.edu.ua/handle/123456789/7665
dc.language.isoen
dc.relation.ispartofseries3; 35
dc.subjectSalesforce
dc.subjectUnit of Work
dc.subjectDML operations
dc.subjecttransactional resources
dc.subjectgovernor limits
dc.subjectoptimization
dc.subjectmulti-tenant architecture
dc.subjectdesign patterns.
dc.titleOperation Optimization in Salesforce Based on the Unit of Work Pattern: An Architectural Approach to Transactional Change Consolidation
dc.typeArticle
dspace.entity.typeScientificArticle

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
004_Андрущак_64-70-1-7_eng.pdf
Size:
523.39 KB
Format:
Adobe Portable Document Format