डेटा आर्किटेक्चर
डेटा मॉडल बाकी सब कुछ तय करता है: पेज, फ़्लो, और उसके ऊपर बने इंटीग्रेशन।
ऐसा डेटा मॉडल बनाना जो अच्छा परफ़ॉर्म करे और org के बढ़ने पर भी टिका रहे, एक आर्किटेक्ट की सबसे ज़रूरी स्किल में से एक है, लगभग एक कला। इस सीरीज़ में मैं डेटा मॉडलिंग, इंडेक्स, सेलेक्टिव क्वेरी, और उन फ़ैसलों को कवर करता हूँ जो तय करते हैं कि बड़े पैमाने पर परफ़ॉर्मेंस टिकेगी या नहीं।
चाहे आप नया ऑब्जेक्ट मॉडल डिज़ाइन कर रहे हों या ऐसे मॉडल को ठीक कर रहे हों जिस पर दबाव पड़ने लगा है, लक्ष्य है शुरू से ही परफ़ॉर्मेंस को ध्यान में रखकर बनाना।
- Updated 2026-11-04
Steve Data Modeling: Mastering Version Control Strategies (2.1) (in English)
What's changed since the video
- Nothing in the pattern
Read the full update
Still right
- Two ways to keep versions of a record. Peer records, the way Salesforce does quotes: many quotes under one opportunity, one of them marked as the synced quote. Simple, but every version shows in list views, related lists and reports, nothing links them in order, and you have to stop two of them being primary at once.
- A parent with version children, the way Salesforce does flows: one top-level record, then versions with a number that counts up, one draft (a deep copy of the active one), one active and locked, and the old ones archived and never changed. You can see exactly what it looked like a week, a month or a year ago.
- Look at how Salesforce solves the problem in its own products before you invent your own.
What's changed
- Nothing in the pattern. Quotes still sit under the opportunity with a synced quote, and a flow still keeps its versions with one active at a time. The screens in the video are from 2023, so menus may look different today. Not a platform change.
- Updated 2026-11-07
Steve Data Modeling: From Picklists To Infinity And Beyond (2.2) (in English)
What's changed since the video
- Nothing in the ladder
- The course uses a different example
Read the full update
Still right
- A picklist is the best choice for a fixed set of values, and a global value set when several fields share the list. The catch: adding a value needs an admin and a deployment through the sandboxes, and an integration that sends a value Salesforce doesn't have gets an error.
- Plain text takes anything but loses the validation: "you never know the data you're going to get".
- A shared reference object, one record type per list and a lookup filter on the record type, lets values be added by a data load instead of a deployment. A custom screen can read the reference object and still store the value as text.
- When the values grow in importance and need fields of their own, give each list its own object.
What's changed
- Nothing in the ladder. Picklists, global value sets, lookup filters and record types work as the video shows. The screens are from 2023. Not a platform change.
- The course uses a different example. The video's pipe sizes and pipe thicknesses become a dog's breed and skill level in the course, with the same questions behind the choice.
- Updated 2026-11-07
Using the Query Plan Tool to Understand Query Performance (2.3) (in English)
What's changed since the video
- The Query Plan now lives in Web Console
Read the full update
Still right
- The Query Plan tool shows how Salesforce would run a SOQL query before you run it: which path it would take (a table scan or an index) and a relative cost for each path. A cost above 1 means the query isn't selective.
- Measure before you guess: run the same query with different filters and compare the plans. The airports demo, about 74,000 records, still teaches it well: a full table scan, a filter on the indexed Name field that uses the index, and a leading wildcard that pushes the cost up.
What's changed
- The Query Plan now lives in Web Console. The video turns the tool on in the Developer Console (Help, Preferences, Enable Query Plan). In Winter '27 the Query Plan is in the new Web Console, where you build a query in the SOQL Builder and see its plan, and the Developer Console no longer appears in the Setup menu by default (Announcing General Availability: Web Console, Salesforce Developers Blog, September 2026; The Salesforce Developer's Guide to the Winter '27 Release, October 2026; both checked 2026-11-01).
- Updated 2026-11-07
Salesforce Indexes Explained (2.4) (in English)
What's changed since the video
- A second way to get a custom index
- Unique fields are indexed too, and the optimizer can add indexes
- The architecture diagram has a new address
Read the full update
Still right
- The library: an index is a card catalog. Without one, Salesforce has to touch every record, a table scan. With one, it looks up the card and goes straight to the records.
- Salesforce's indexes sit on top of its shared, multitenant tables, so they work differently from the indexes in your own database. Salesforce keeps standard indexes on common fields out of the box, and a custom index can be added to other fields.
- Marking a field as an External ID creates an index on it.
What's changed
- A second way to get a custom index. The video says a custom index comes through Salesforce Support. Salesforce now names two ways: "by contacting Salesforce Customer Support or by deploying a custom index XML file via the Metadata API", and even the Metadata API route starts with a conversation with Support (Indexes, Best Practices for Deployments with Large Data Volumes, Winter '27; CustomIndex, Metadata API Developer Guide; both checked 2026-11-07).
- Unique fields are indexed too, and the optimizer can add indexes. Custom fields marked as External ID or Unique are indexed by default, and "Fields not indexed by default are automatically indexed when the Salesforce optimizer recognizes that an index can improve performance for frequently run queries" (Working with Very Large SOQL Queries, Apex Developer Guide, Winter '27, checked 2026-11-01). Check the field in Object Manager rather than assuming.
- The architecture diagram has a new address. The multitenant diagram the video points to is now at Platform Multitenant Architecture (Salesforce Architects, checked 2026-11-01). Not a platform change.
- Updated 2026-11-07
Making Selective Queries for Performance (2.5) (in English)
What's changed since the video
- The cases are documented now, and the course quotes them
- Greater-than and less-than on text fields
- The Query Plan route
Read the full update
Still right
- Having an index isn't enough: you have to ask for the data in a way the index can answer. "Starts with" on an indexed field can use the index; "not equal", "not in" and a search for an empty value can't.
- A leading wildcard (`LIKE '%Z%'`) behaves like "contains" and can't use the index the way "starts with" does.
- List views and report filters follow the same rules as SOQL: what you filter on, and how, decides whether they're fast.
What's changed
- The cases are documented now, and the course quotes them. Salesforce lists when a custom index typically isn't used: a negative operator such as "NOT EQUAL TO (or !=), NOT CONTAINS, and NOT STARTS WITH", CONTAINS, and "comparing with an empty value (Name != '')" (Working with Very Large SOQL Queries, Apex Developer Guide, Winter '27, checked 2026-11-01). Not a platform change.
- Greater-than and less-than on text fields. The video lists these as not selective. That's from experience, and we didn't find it in Salesforce's documentation, so the course teaches only the documented cases. Not a platform change.
- The Query Plan route. To see whether a filter uses the index, the Query Plan is now in Web Console rather than the Developer Console (see the note on STA 2.3).
- Updated 2026-11-07
Selectivity Threshold Explained (2.6) (in English)
What's changed since the video
- The custom index threshold is 10%, not 15%
- One worked example is off
- The thresholds haven't moved
Read the full update
Still right
- The query optimizer, the librarian, decides whether an index is worth using by comparing how many records a filter would return with how many the object holds. That proportion is the selectivity threshold.
- "Everybody lives in Arizona": if almost every record matches, the index can't help, and going through it would be slower than reading the table.
- A standard index allows 30% of the first million records and 15% of the records beyond the first million, up to 1 million. A query that's fast today can stop being selective as the data grows.
What's changed
- The custom index threshold is 10%, not 15%. In the video the custom index line is said as 15% of the first million. Salesforce's figures: 10% of the first million records and 5% beyond, up to 333,333; for a standard index, 30% and 15%, up to 1 million (Make Salesforce Platform SOQL Query Selective, Salesforce Help, version 4, April 2026, checked 2026-11-01). Not a platform change: a slip in the recording.
- One worked example is off. In the grid, 30% of 300,000 is said as 990,000. It's 90,000. Not a platform change.
- The thresholds haven't moved. The Help article's figures were unchanged in April 2026, and Salesforce's Well-Architected guidance now calls selectivity "the single largest lever on whether a solution scales to millions of records or times out at hundreds of thousands" (Resource and Cost Optimization, checked 2026-11-01).
- Updated 2026-11-07
Data Architecture: Address, Affiliation, and Relationship Learnings from NPSP Data Model (2.7) (in English)
What's changed since the video
- Salesforce's newer nonprofit product models households differently
Read the full update
Still right
- Learn by studying other implementations: look at how Salesforce's own products model a problem before you build your own.
- Three patterns from the Nonprofit Success Pack (NPSP) that work far beyond nonprofits: an address object linked to the household and the person, so each can have several addresses, including seasonal ones with start and end dates; relationships between people as pairs of one-way records (parent and child, created together); and affiliations joining a person to an organization outside the household (employee, board member, book club).
- NPSP still keeps seasonal addresses with start and end dates, and switches the mailing address on the start date and back on the end date (Specify a Seasonal Address, Salesforce Help, checked 2026-11-07).
What's changed
- Salesforce's newer nonprofit product models households differently. Alongside NPSP, a managed package, Salesforce now has Agentforce Nonprofit (first launched as Nonprofit Cloud), built into the platform. It tracks people as person accounts and households as business accounts joined through party relationship groups, and a person can belong to several groups at once. In Salesforce's words, "Households work differently in Nonprofit Success Pack (NPSP)" (Manage Households, Trailhead, Stakeholder Management in Agentforce Nonprofit, checked 2026-11-07). The patterns in the video are still worth learning; the newer product is another model to study.
- Updated 2026-11-07
Data Architecture: Using a Data Dictionary for Planning Before You Setup in Salesforce (2.11) (in English)
What's changed since the video
- Data Cloud is now Data 360
Read the full update
Still right
- Design in a shared spreadsheet before you build: every standard field of the key objects, marked used or not; then the custom objects and fields, their types, lookups, picklists and value sets, record types, help text, required, history tracking and permissions; then validation rules, flows, queues, sharing and reports.
- Flag new fields until they're built in the development org and in source control, so the sheet always shows what's designed but not yet built.
- A dictionary is a communication tool as much as a record: the business, the admins and the developers read the same sheet.
What's changed
- Data Cloud is now Data 360. The video says Data Cloud "almost requires" this kind of mapping ahead of time; the product is now called Data 360 (Get Started with Data 360 Development, Data 360 Developer Guide, checked 2026-11-07). The point still holds.
- Updated 2026-11-07
Data Architecture: Denormalized Object for Imports, Lessons from Data Cloud, NPSP & Field Service (2.8) (in English)
What's changed since the video
- Data Cloud is now Data 360
Read the full update
Still right
- The import (staging) object: load flattened data, a spreadsheet or a CSV, into one custom import object inside Salesforce, then let batch processes spread it into the normalized objects, or run the platform's own logic as they do.
- Salesforce uses the same pattern in its own products. The NPSP Data Importer loads into an import object, can do a dry run that checks for matches without creating anything, and writes each new record's ID back onto the row it came from (How the Import Process Works, Salesforce Help, checked 2026-11-07).
- Data 360 does the same on a larger scale: one denormalized data lake object can map to several data model objects.
What's changed
- Data Cloud is now Data 360. "As of October 14, 2025, Data Cloud has been rebranded to Data 360 … While the name is new, the functionality and content remains unchanged" (Get Started with Data 360 Development, Data 360 Developer Guide, checked 2026-11-07). The video uses the old name.
- Updated 2026-11-07
Data Architecture: Survey Data Model Explained, Simple to Complex (2.9) (in English)
What's changed since the video
- Nothing in the pattern
Read the full update
Still right
- Build the model from the requirements, one step at a time: a survey, its questions, a survey response for each time someone takes it, and an answer for each question.
- Then grow it as the requirements grow: a shared pool of questions joined to each survey, with the order on the join, so the same question reports the same way everywhere; a response type on each question with typed answer fields (text, date, number); sets of allowed answers; and versions of a survey.
- "Anytime you have the concept of dynamic questions and dynamic fields," this is the pattern.
- Salesforce built the same shape into its own Surveys product, with objects such as Survey Version, Survey Page, Survey Question and Survey Question Response (Salesforce Surveys Data Model, Data Model Gallery, Salesforce Developers, checked 2026-11-07).
What's changed
- Nothing in the pattern. The objects and relationships in the video are a design, not a feature, and they hold. Not a platform change.
वीडियो YouTube से तभी लोड होता है जब आप उस पर क्लिक करते हैं।