key-value-store

Need a MySQL query for selecting from a table storing key value pairs

对着背影说爱祢 提交于 2019-11-27 07:13:13
问题 I need to store few items and its properties in form of a key value pairs in the database (mySQL). I am planning to do it as following. I'll use two tables items and item_properties . items itemId | itemName ------------------- 1923 | AC 1235 | Fridge 8273 | Heater item_properties itemId | property | value -------------------------------- 1923 | effect | cooling 1923 | consumption | efficient 1923 | type | split 1235 | effect | cooling 1235 | volume | 20 liters 8273 | effect | heating 8273 |

What scalability problems have you encountered using a NoSQL data store? [closed]

房东的猫 提交于 2019-11-27 04:09:16
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 months ago . NoSQL refers to non-relational data stores that break with the history of relational databases and ACID guarantees. Popular open source NoSQL data stores include: Cassandra (tabular, written in Java, used by Cisco, WebEx, Digg, Facebook, IBM, Mahalo, Rackspace, Reddit and

Storing object properties in redis

拥有回忆 提交于 2019-11-27 01:52:44
问题 Lets say I have an object (User) which consists of a few properties (ID, Name, Surename, Age). Which way is better to store this object in redis? store each property value in dedicated key, for example user:{id}:id, user:{id}:name, user:{id}:surename, user:{id}:age store whole User object as JSON string in one key, for example user:{id}:json (value of the key will be something like this: {"ID": 123, "Name": "Johny", "Surename": "Bravo", "Age": 22}) 回答1: According to these two sources probably