Gearset compare 2.0: Overview

How the new comparison approach improves performance

Stephen Chambers avatar
Written by Stephen Chambers
Updated over a week ago

Introduction

Since Gearset's launch in 2015, the Salesforce release management landscape has changed with the growing popularity of DevOps and teams looking to deploy their changes faster and with fewer deployment failures.

Salesforce orgs, team size, deployment complexity and metadata types have all increased over the years and will only continue to expand further. It's one of the core drivers which has led to the Gearset team to rebuild its approach to downloading and comparing metadata to ensure comparison speed meets those needs.

The traditional Gearset comparison approach

Gearset has traditionally requested all metadata for a metadata type(s), unless a more granular pre-comparison filter has been specified to retrieve fewer types or items. This can on occasion mean:

  • Waiting times for the metadata to be returned from Salesforce can be significant and some metadata types can be impacted more severely than others.

  • For items that haven't changed, which is often the case when comparing on a semi-regular basis, these no difference items are also retrieved and unnecessarily compared each time.

  • Having to pre-filter each comparison to only include the most recent changes or changes you're interested in can take time to configure before requesting the metadata and leading to a longer overall process.

The Gearset compare 2.0 approach

In order to make comparisons faster, by removing the bottleneck of metadata download times from Salesforce, several changes to the comparison engine have been implemented combined with a series of UI optimisations. The end results is a more streamlined approach to comparing and deploying metadata.

The improvements include:

  • The introduction of incremental caching for metadata types resulting in the need to request less metadata from Salesforce leading to a significant improvement in the overall experience.

  • On-demand metadata retrieval. Simply click on a currently pending metadata item to prioritize its retrieval.

  • A completely new set of UI features specifically designed to let users really take charge of their comparisons and drive what results they want to see on-demand to reduce the number of pre-comparison configuration steps required.

  • Enhanced functionality to existing features such as the management of comparison filters with additional information available to more efficiently choose the items for comparison you most care about.

  • Source tracking support as a comparison filter. Source tracking was introduced by Salesforce for Developer and Developer Pro sandbox orgs as a way to make the retrieval of changed items in an org more instantly available. By utilising source tracking capabilities for orgs that have it enabled, Gearset can take advantage of a faster way to retrieve a specific subset of changes and build your comparison filter automatically.

Planned comparison improvements for Q1 2024:

  • Using metadata snapshots from existing team owned connections. If your team have configured orgs to be team owned, Gearset will use the latest snapshot for that org connection, meaning that even if you haven't previously compared that org you'll receive the benefit of metadata already being available and only the delta being retrieved for metadata types you want to compare.

Did this answer your question?