Answer the question
In order to leave comments, you need to log in
How to implement dynamic fields and sections for a table?
Is table1, table2, tabl3....
it necessary to add dynamic fields to the tables
table1.name
table1.height
....
table2.name
table2.value
....
table1
table1.name
the section Info
table1.height
belongs belong to the section Additional information
Answer the question
In order to leave comments, you need to log in
Your idea of dynamic fields fits well with the concept of NoSQL.
MongoDB allows you to store documents in a single collection (table) in almost arbitrary JSON form.
In MongoDB, documents (records) look quite simple on the example of a product catalog:
[
{
_id: ObjectId("1"),
"name": "Шкаф",
"category": "Мебель",
"price": 18000,
"weight": 20.0,
"details": {
"height": 180,
"width": 60,
"depth": 40,
"color": "белый"
}
},
{
_id: ObjectId("2"),
"name": "Молоко",
"category": "Продукты",
"price": 100,
"weight": 1.0,
"details": {
"volume": 1.0,
}
}
]
Yes, maybe it's time not only for mongo, but also for hbase. Your task, in theory, fits very well on hbase.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question