Open suvayu opened 2 months ago
How much larger would the blobs be if we make them query friendly?
{'data': [['2024', 1.2], ['2025', 1.3]]}
{'data': [{'time': '2024', 'value': 1.2}, {'time': 2025': 'value': 1.3}]}
{'data': [['scenario_1', '2024', 1.2], ['scenario_1', '2025', 1.3]]}
Partial retrieval using JSON functions in SQL query
parameter_value docs
parameter_value
If implementing JSON query with spinedb_api is too complicated, do an equivalent comparison using raw SQL or sqlalchemy (if supported).
spinedb_api
sqlalchemy
NOTE: This is still in Python, and not in the SQLite CLI.
How much larger would the blobs be if we make them query friendly?
{'data': [['2024', 1.2], ['2025', 1.3]]}
{'data': [{'time': '2024', 'value': 1.2}, {'time': 2025': 'value': 1.3}]}
{'data': [['scenario_1', '2024', 1.2], ['scenario_1', '2025', 1.3]]}
Partial retrieval using JSON functions in SQL query
Relevant info
parameter_value
docsFallback (early)
If implementing JSON query with
spinedb_api
is too complicated, do an equivalent comparison using raw SQL orsqlalchemy
(if supported).NOTE: This is still in Python, and not in the SQLite CLI.
SQL dialects