Skip to main content

Posts

Showing posts with the label data

Data migration note

  Salesforce Anti-Patterns: A Cautionary Tale Designing the data model for performance Loading data into a lean configuration Suspending events that fire on insert Sequencing load operations Loading and extracting data Salesforce record locking cheat sheet Bulk API is by far the quickest way to insert, query, and delete records. The Bulk API should be used for tens of millions or hundreds of millions of records to load or extract. By chunking your queries into batches, tuning your batch sizes for optimum throughput, and avoiding locking errors, you can achieve very high performance for your data movement tasks. Taking advantage of deferred sharing calculations Pre-Data Loading Configuration Steps Create the role hierarchy. Assign users to roles. Set organization-wide defaults to Public Read/Write. Post-Data Loading Configuration Steps Set organization-wide defaults to Public Read Only or Private. Create public groups and queues. Create sharing rules.

Export data into smaller sets

 Applied for exporting more than 1 million records. Create or use an existing auto-number field. Alternatively, you can use any number fields that can make up a unique value, as long as they are sequential.  Note : If you are adding a new auto-number field, make sure to enable the “Generate Auto Number for existing records…” option. Create a formula field that converts the auto-number field text value into a numeric value—you cannot use an index with comparison operators such as “<=” (less than or equal to) or “>” (greater than) for the text-based auto-number field. In this example, we’ll name this field “ExportID.” Place a custom index on the formula field by contacting salesforce.com Customer.  Source: https://developer.salesforce.com/blogs/engineering/2013/06/extracting-large-data-volume-ldv-in-force-com

Mass merging for duplicates note

Merge data within the same categories first before working on cross-type dups. For example: Client vs client, Partner vs Partner; Prospect vs Prospect, etc. It helps to narrow down the batch size and is probably safer when starting to merge dups. (save me a lot of headaches) Building Data Quality/Merging score: depends on your Salesforce and fields. It would help when merging cross-type dups (i.e Client vs Prospect). If you use the mass merge tool, make sure to analyze the data and data type first. Then adjust the merging rule behavior for each field if possible. For example, the tool I'm using allows me to concatenate the long text field if this field is populated in all dups. Or get the sum amount or max number depending on the fields.