Ravi Sir's Cards › AWS (मराठी)
Keys
या comparison card मध्ये GSI आणि LSI यांची तुलना केली आहे. GSI: नवीन partition key (+ optional sort). LSI: तोच partition key, वेगळा sort key. GSI कधी वापरावं: बहुतेक दुसरे access patterns. LSI कधी वापरावं: त्याच PK वर alternate sort.
कार्ड मजकूर वाचा
या कार्डवर काय आहे
Keys
GSI
नवीन partition key (+ optional sort).
LSI
तोच partition key, वेगळा sort key.
मुख्य मुद्दे
कधीही add (limits सह).
Table सोबतच create.
उदाहरण
Same user, order by date vs by status.
कधी वापरावं
बहुतेक दुसरे access patterns.
त्याच PK वर alternate sort.