با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
فقط مربوط به Cloud Firestore Enterprise edition.
برای تصمیم گیری آگاهانه در مورد معماری برنامه های خود برای عملکرد و قابلیت اطمینان بالا، این سند را بخوانید. این سند شامل موضوعات پیشرفته Cloud Firestore است. اگر به تازگی با Cloud Firestore شروع کرده اید، به جای آن به راهنمای شروع سریع مراجعه کنید. برای اطمینان از اینکه برنامه های شما همچنان به عملکرد خوب خود ادامه می دهند و حجم پایگاه داده و ترافیک شما افزایش می یابد، به درک مکانیزم خواندن و نوشتن در Backend Firestore کمک می کند. همچنین باید تعامل خواندن و نوشتن خود با لایه ذخیره سازی و محدودیت های اساسی که ممکن است بر عملکرد تأثیر بگذارد را درک کنید.
برای آشنایی با برخی از بهترین روشها قبل از طراحی برنامه، موارد زیر را بخوانید:
تمام نوشتن ها به عنوان تراکنش های خواندن و نوشتن برای اطمینان از ویژگی های ACID استفاده می شوند. اگر یک نوشتن شامل چندین تقسیم شود، ممکن است به یک فرآیند commit دو فازی نیاز داشته باشد.
خواندنها ، بهطور پیشفرض، «بهشدت سازگار» هستند و از رویکردی مبتنی بر مهر زمانی برای جلوگیری از قفل استفاده میکنند.
برای حفظ عملکرد بالا، باید با توزیع عملیات در محدوده کلید و کوچک نگه داشتن تراکنش ها از هات اسپات ها اجتناب کنید .
تاریخ آخرین بهروزرسانی 2025-09-04 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-09-04 بهوقت ساعت هماهنگ جهانی."],[],[],null,["\u003cbr /\u003e\n\n\n|--------------------------------------------------------|\n| *Relevant to Cloud Firestore Enterprise edition only.* |\n\n\u003cbr /\u003e\n\nRead this document to make informed decisions on architecting your applications\nfor high performance and reliability. This document includes advanced\nCloud Firestore topics. If you're just starting out with Cloud Firestore,\nsee the [quickstart guide](/docs/firestore/enterprise/create-and-query-database)\ninstead. To make sure that your applications continue to perform well as your\ndatabase size and traffic increase, it helps to understand the mechanics of\nreads and writes in the Firestore backend. You must also understand the\ninteraction of your read and writes with the storage layer and the underlying\nconstraints that may affect performance.\n\nTo learn about some best practices before architecting your application, read\nthe following:\n\n- Understand the [high level components](https://cloud.google.com/firestore/mongodb-compatibility/docs/understand-reads-writes-scale#understand_the_high_level_components) of an API request.\n- All [writes](https://cloud.google.com/firestore/mongodb-compatibility/docs/understand-reads-writes-scale#understand_the_life_of_a_write) are handled as read-write transactions to ensure ACID properties. If a write involves multiple splits, it may require a two-phase commit process.\n- [Reads](https://cloud.google.com/firestore/mongodb-compatibility/docs/understand-reads-writes-scale#understand_the_life_of_a_read), by default, are \"strongly consistent\" and use a timestamp-based approach to avoid locks.\n- To maintain high performance, you should [avoid hotspots](https://cloud.google.com/firestore/mongodb-compatibility/docs/understand-reads-writes-scale#avoid_hotspots) by distributing operations across the key range and keeping transactions small."]]