Replies: 9 comments 7 replies
-
We should think about strict schemas for google big queries (protobuf) or Apache Spark? |
Beta Was this translation helpful? Give feedback.
-
I think so - one of the big advantages of this standard would be for use in analytics solutions. |
Beta Was this translation helpful? Give feedback.
-
Is there a large performance advantage to externalizing |
Beta Was this translation helpful? Give feedback.
-
Yes, it is! Databases need primary keys :( |
Beta Was this translation helpful? Give feedback.
-
How do I know which version of FHIR it is? |
Beta Was this translation helpful? Give feedback.
-
What is the table naming convention for resources that contain more than one word, e.g. |
Beta Was this translation helpful? Give feedback.
-
How will resource versioning work? Will queries need to take into account that there could be multiple IDs for the same resource with different business versions? |
Beta Was this translation helpful? Give feedback.
-
While playing with this demo http://142.132.196.32:7777/#/console I notices that the DuckDB version uses first-level attributes as columns, while Postgres use only one column resource. I am experimenting with SQLAlchemy to write portable queries but it is not possible now, since the table definitions are completely different: # Postgres
class Patient(Base):
__tablename__ = "patient"
id = Column(Integer, primary_key=True)
resource = Column(JSON)
# DuckDB
class Patient(Base):
__tablename__ = "patient"
id = Column(String, primary_key=True)
name = Column(ARRAY(DuckJSON))
birthDate = Column(String)
gender = Column(String) I think we should use the same schema across all databases. |
Beta Was this translation helpful? Give feedback.
-
I like this schema, because it leaves space to add generated columns for commonly queried JSON fields/search parameter indexing/etc. |
Beta Was this translation helpful? Give feedback.
-
This question is very sensitive for different databases details.
Option 1:
pros:
Beta Was this translation helpful? Give feedback.
All reactions