php - Order of insertion of array values at Amazon DynamoDB -


when adding array @ dynamodb put_item, there way tell preserve order of values of array?

example: i'm adding array("2", "1", "4"), , it's added table 1, 2, 4. don't want dynamo mess array :)

thanks in advance.

no, arrays in dynamodb sets, don't preserve ordering.

best alternative concatenate them string (using delimiter) , inserting string i.e. 2#1#4 , split them when read back.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -