Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modeling DB @ Cloud Firestore

Modeling DB @ Cloud Firestore

push ID: auto ID in Realtime Database

Yatima-Kagurazaka

December 16, 2017
Tweet

More Decks by Yatima-Kagurazaka

Other Decks in Technology

Transcript

  1. yati.ma/qi Yatima Kagurazaka Minkore CTO MENSAn Physician I like tech,

    design, music, etc My PC: Pixelbook(+ VSCode on Kali Linux)
  2. yati.ma/qi Equal to prod. use Almost no downtime Super scalability

    Multi region Strong Consistency Some query support
  3. yati.ma/qi A doc is minimum unit Read Write Rule Update

    limit: 1/sec Subcollection depth: ≦ 100
  4. yati.ma/qi Multi UniFeed Follower: ≦ 10,000,000 (20,000 * 500) ...Actually,

    not everyone follow one Probably up to approx. 1M follower in rough estimate
  5. yati.ma/qi Level 2 multi UniFeed Add batch() at Cloud Functions,

    more scalable Follower: ≦ 5,000,000,000 (20,000 * 500 * 500) and you can go any level! your bank balance vs Google’s capacity
  6. yati.ma/qi UniFeed: Doc size w/ auth.uid: < approx. 600kb (20,000

    * 30 chars) w/ pushid: < approx. 300kb (20,000 * 15 chars) ...Actually, not everyone bla bla so at most 30kb, usually 300 or less (realistic!)