Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet249/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   245   246   247   248   249   250   251   252   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

First Rule
: Collections can only contain documents. For example, you cannot add 

String
 to the collection.

Second Rule
: Documents cannot contain other documents; however, they can 
point to subcollections. For example, your collections can contain many 
documents, and those documents can point to other collections. This is how things 
are formatted in a tree-like structure.

Third Rule
: The root of the Cloud Firestore database can only contain collections.
For example, in the 
WhatsUp
 app you created earlier, you could have a 
Posts
 
collection that contains a document for each post. Each document would point to a 
Comments
 collection that contains comments for that post, and the document that 
contains the comments would point to another collection, and so on.
When you worked with the Realtime Database, you learned that you should avoid 
these deeply nested hierarchy structures. In Cloud Firestore, however, these deeply 
nested structures are typical because the queries are shallow, meaning that querying 
data from a document will get you 
only that document
; you don’t have to query the 
entire collection or the subcollections within the document. This also means that 
queries are more efficient and flexible than in a Realtime Database, especially when 
it comes to filtering and sorting the data.
With 
WhatsUp
 app running with Cloud Firestore, you could have a collection of 
posts and any other collections you need to represent the data.

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   245   246   247   248   249   250   251   252   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish