现已推出具有 MongoDB 兼容性的 Firestore 企业版!
了解详情。
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Cloud Firestore
plat_ios
plat_android
plat_web
plat_flutter
plat_cpp
plat_unity
plat_node
plat_java
plat_python
plat_go
שימוש במסד הנתונים בענן של NoSQL, הגמיש והניתן להתאמה,
בתשתית Google Cloud, כדי לאחסן ולסנכרן נתונים עבור
פיתוח בצד השרת.
Cloud Firestore הוא מסד נתונים גמיש שניתן להתאמה לנייד, לאינטרנט,
ופיתוח שרתים מ-Firebase ומ-Google Cloud. מוצא חן בעיניי
Firebase Realtime Database, הוא שומר על סנכרון הנתונים בין אפליקציות הלקוח באמצעות
מכשירי האזנה בזמן אמת ומציעים תמיכה אופליין לנייד ולאינטרנט כדי שתוכלו
ליצור אפליקציות רספונסיביות שפועלות ללא קשר לזמן האחזור ברשת או לאינטרנט
קישוריות. Cloud Firestore מציע גם שילוב חלק עם מוצרים אחרים של Firebase ו-Google Cloud, כולל Cloud Functions.
שנתחיל?
יכולות עיקריות
גמישות |
מודל הנתונים Cloud Firestore תומך במבני נתונים גמישים היררכיים.
שומרים את הנתונים במסמכים שמסודרים באוספים. מסמכים
יכול להכיל אובייקטים מורכבים יותר בתצוגת עץ, בנוסף לאוסףי משנה.
|
שאילתות אקספרסיביות |
ב-Cloud Firestore, אפשר להשתמש בשאילתות כדי לאחזר נתונים בודדים,
מסמכים ספציפיים או לאחזר את כל המסמכים באוסף
שתואמים לפרמטרים של השאילתה. השאילתות יכולות לכלול כמה שאילתות,
ולשלב סינון ומיון. הם גם נוספים לאינדקס כברירת מחדל,
כך שביצועי השאילתה פרופורציונליים לגודל קבוצת התוצאות,
במערך הנתונים.
|
עדכונים בזמן אמת |
בדומה ל-Realtime Database, Cloud Firestore משתמשת בסנכרון נתונים כדי לעדכן נתונים ב-
בכל מכשיר מחובר. עם זאת, הוא גם נועד להפוך את
לאחזר שאילתות באופן יעיל.
|
תמיכה אופליין |
Cloud Firestore שומר במטמון נתונים שהאפליקציה משתמשת בהם באופן פעיל, כך שהאפליקציה יכולה לכתוב, לקרוא, להאזין ולשלוח שאילתות לגבי נתונים גם אם המכשיר במצב אופליין. כאשר
המכשיר חוזר למצב אונליין, Cloud Firestore מסנכרן חזרה את כל השינויים המקומיים
אל Cloud Firestore.
|
מותאם בקנה מידה רחב |
Cloud Firestore מאפשר לך ליהנות מכל היתרונות של Google Cloud
תשתית: רפליקציה אוטומטית של נתונים במספר אזורים, חזקה
ערבויות עקביות, פעולות אטומיות באצווה ועסקאות אמיתיות
תמיכה. תכננו את Cloud Firestore כדי לטפל בעומסי העבודה הקשים ביותר של מסדי נתונים באפליקציות הגדולות בעולם.
|
איך זה עובד?

Cloud Firestore הוא מסד נתונים NoSQL שמתארח בענן, ב-Apple, ב-Android ובאתר שלך
אפליקציות יכולות לגשת ישירות דרך ערכות SDK מקוריות. גם Cloud Firestore זמין
בערכות SDK מקוריות של Node.js, Java, Python, Unity, C++ ו-Go, בנוסף ל-REST
ממשקי API ל-RPC.
בהתאם למודל הנתונים של Cloud Firestore ב-NoSQL, אתם מאחסנים נתונים במסמכים שמכילים שדות שממופים לערכים. המסמכים האלה מאוחסנים ב-
אוספים, שהם מאגרים של המסמכים שלך שאפשר להשתמש בהם
לארגן את הנתונים וליצור שאילתות. המסמכים תומכים בהרבה סוגים
סוגי נתונים, ממחרוזות ומספרים פשוטים, ועד
של אובייקטים מורכבים ומקננים. ניתן גם ליצור אוספי משנה בתוך
וליצור מבני נתונים היררכיים שמתאימים לעומס (scaling)
גדלים ומתרחבים. מודל הנתונים של Cloud Firestore תומך בכל
מבנה הנתונים המתאים ביותר לאפליקציה שלכם.
בנוסף, השאילתות ב-Cloud Firestore הן יעילות, גמישות ומאפשרות להביע את המשמעות בצורה מדויקת.
ליצור שאילתות פשוטות כדי לאחזר נתונים ברמת המסמך, בלי שיהיה צורך
לאחזר את כל האוסף או כל אוספי משנה מקוננים. הוספת מיון,
סינון והגבלה לשאילתות או לסמנים שלך
עימוד של תוצאות. כדי שהנתונים באפליקציות שלכם יהיו עדכניים, בלי לאחזר אותם
את כל מסד הנתונים בכל פעם שמתרחש עדכון, כדאי להוסיף מאזינים בזמן אמת.
אם תוסיפו לאפליקציה מאזינים בזמן אמת, תקבלו תמונת מצב של הנתונים בכל פעם
לנתונים שהאפליקציות של הלקוח מקשיבות לשינויים, ומאחזרים רק את
שינויים.
הגנה על הגישה לנתונים שלך ב-Cloud Firestore באמצעות Firebase Authentication וגם
Cloud Firestore Security Rules ל-Android, לפלטפורמות של Apple ול-JavaScript או Identity
וניהול הרשאות גישה (IAM) לשפות בצד השרת.
נתיב הטמעה
|
שילוב של Cloud Firestore ערכות ה-SDK |
כוללים במהירות לקוחות באמצעות Gradle, CocoaPods או סקריפט. |
|
אבטחת הנתונים |
שימוש ב-Cloud Firestore Security Rules או בניהול זהויות והרשאות גישה (IAM) כדי לאבטח
לצורך פיתוח נתונים לנייד/אינטרנט ושרת, בהתאמה. |
|
הוספת נתונים |
ליצור מסמכים ואוספים במסד הנתונים. |
|
קבלת נתונים |
ליצור שאילתות או להשתמש במאזינים בזמן אמת כדי לאחזר נתונים
מסד נתונים. |
השלבים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-17 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-17 (שעון UTC)."],[],[],null,["Cloud Firestore \nplat_ios plat_android plat_web plat_flutter plat_cpp plat_unity plat_node plat_java plat_python plat_go \nUse our flexible, scalable NoSQL cloud database, built\non Google Cloud infrastructure, to store and sync data for client- and\nserver-side development. \n\nCloud Firestore is a flexible, scalable database for mobile, web,\nand server development from Firebase and Google Cloud. Like\nFirebase Realtime Database, it keeps your data in sync across client apps through\nrealtime listeners and offers offline support for mobile and web so you can\nbuild responsive apps that work regardless of network latency or Internet\nconnectivity. Cloud Firestore also offers seamless integration with other Firebase\nand Google Cloud products, including Cloud Functions.\n\nCloud Firestore is available in two editions to meet different needs.\n[Learn about the editions](/docs/firestore/editions)\n\nKey capabilities\n\n|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Flexibility | The Cloud Firestore data model supports flexible, hierarchical data structures. Store your data in documents, organized into collections. Documents can contain complex nested objects in addition to subcollections. |\n| Expressive querying | In Cloud Firestore, you can use queries to retrieve individual, specific documents or to retrieve all the documents in a collection that match your query parameters. Your queries can include multiple, chained filters and combine filtering and sorting. |\n| Realtime updates | Like Realtime Database, Cloud Firestore uses data synchronization to update data on any connected device. However, it's also designed to make simple, one-time fetch queries efficiently. |\n| Offline support | Cloud Firestore caches data that your app is actively using, so the app can write, read, listen to, and query data even if the device is offline. When the device comes back online, Cloud Firestore synchronizes any local changes back to Cloud Firestore. |\n| Designed to scale | Cloud Firestore brings you the best of Google Cloud's powerful infrastructure: automatic multi-region data replication, strong consistency guarantees, atomic batch operations, and ACID transaction support. We've designed Cloud Firestore to handle the toughest database workloads from the world's biggest apps. |\n| MongoDB compatibility | Cloud Firestore offers a MongoDB-compatible API. You can use existing MongoDB application code, drivers, tools, and the open-source ecosystem of MongoDB integrations with Cloud Firestore in the [Enterprise edition.](/docs/firestore/enterprise/mongodb-compatibility-overview) |\n\nHow does it work?\n\nCloud Firestore is a cloud-hosted, NoSQL database that your Apple, Android, and\nweb\napps can access directly via native SDKs. Cloud Firestore is also available\nin native Node.js, Java, Python, Unity, C++ and Go SDKs, in addition to REST and\nRPC APIs.\n\nFollowing Cloud Firestore's document data model, you store data that\ncontain fields mapping to values. These documents are stored in\ncollections, which are containers for your documents that you can use to\norganize your data and build queries. Documents support many different\n[data types](/docs/firestore/manage-data/data-types), from simple strings and numbers, to\ncomplex, nested objects. You can also create subcollections within\ndocuments and build hierarchical data structures that scale as your\ndatabase grows. The Cloud Firestore [data model](/docs/firestore/data-model) supports whatever\ndata structure works best for your app.\n\nAdditionally, querying in Cloud Firestore is expressive, efficient, and flexible.\nCreate shallow queries to retrieve data at the document level without needing to\nretrieve the entire collection, or any nested subcollections. Add sorting,\nfiltering, and limits to your queries or cursors to\npaginate your results. To keep data in your apps current, without retrieving\nyour entire database each time an update happens, add realtime listeners.\nAdding realtime listeners to your app notifies you with a data snapshot whenever\nthe data your client apps are listening to changes, retrieving only the new\nchanges.\n\nProtect access to your data in Cloud Firestore with Firebase Authentication and\nCloud Firestore Security Rules for Android, Apple platforms, and JavaScript, or Identity\nand Access Management (IAM) for server-side languages.\n\nImplementation path\n\n|---|------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Integrate the Cloud Firestore SDKs | Quickly include clients via Gradle, CocoaPods, or a script include. |\n| | Secure your data | Use Cloud Firestore Security Rules or Identity and Access Management (IAM) to secure your data for mobile/web and server development, respectively. |\n| | Add Data | Create documents and collections in your database. |\n| | Get Data | Create queries or use realtime listeners to retrieve data from the database. |\n\nNext steps\n\n- [Get started](/docs/firestore/quickstart) with Cloud Firestore --- set up your database, then add data and start reading it.\n- Learn more about the Cloud Firestore [data model](/docs/firestore/data-model).\n- Explore the [differences between Realtime Database and Cloud Firestore](/docs/firestore/rtdb-vs-firestore)."]]