2016-06-01 8 views
6

मैं अपने अनुप्रयोगों में से एक के लिए डायनेमो डीबी का उपयोग कर रहा हूं।क्या डायनेमो डीबी रेंज कुंजी खाली हो सकती है?

मैं जानना चाहता था कि श्रेणी कुंजी के रूप में एक विशेषता सेट करना संभव है और फिर इसे कुछ रिकॉर्ड (या तो खाली या शून्य) के लिए अप्रचलित छोड़ दें।

उत्तर

10

आप रेंज कुंजी के साथ खाली मूल्य या रेंज कुंजी के बिना कोई आइटम नहीं डाल सकते हैं।

यदि श्रेणी कुंजी शामिल नहीं है। आप नीचे दिए गए त्रुटि मिलती हैं: -:

When you add an item, the primary key attribute(s) are the only required attributes. Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes cannot be empty. Requests with empty values will be rejected with a ValidationException exception.

+0

http:/-

"One of the required keys was not given a value" 

रेंज कुंजी के साथ '' (यानी रिक्त स्ट्रिंग)

"message": "One or more parameter values were invalid: An AttributeValue may not contain an empty string" 

एडब्ल्यूएस डॉक्टर से बसा है, तो /docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html –

संबंधित मुद्दे