Modelling and Design - what is the best table schema for my data #131
dario-vega
started this conversation in
Show and tell
Replies: 1 comment
-
🆕 Oracle NoSQL Database 23.3 introduces a new type of table called JSON Collection tables. These are particularly useful for applications that store and retrieve their data purely as documents. JSON Collection tables simplify document management and manipulation by eliminating the need to declare fields during table creation. You create a JSON collection table with one or more primary key fields. When you insert data into the table, a single document is created without explicitly declaring columns. The document can contain any number of JSON fields. The primary key fields can include IDENTITY columns and UUIDs.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Schema flexibility in Oracle NoSQL database.
📲 Modern application developers have many choices when faced with deciding when and how to persist a piece of data. Unlike the traditional relational model with purely fixed schemas, NoSQL Database is essentially about schema flexibility – the ability to change how data is organized and stored easily. 👨💻 👩💻
what is the best table schema for my data?
A brief aside here - People generally think about all the features and data types they're already familiar with from their past experience using other products - so, What is a table schema or simply a table?
✔ In Oracle NoSQL Database, A table is an unordered collection of record items, all of which have the same record type. We call this record type the table schema.
✔ Oracle NoSQL database supports the following non-scalar data types: JSON, Records, Array, and Maps.
✔ Oracle NoSQL database support also Parent-Child tables.
✔ Seamless multi-model - the interoperability between schema-less and fixed schema data models provides even more flexibility. Use the same query/API whatever the schema is chosen.
More in https://docs.oracle.com/en/database/other-databases/nosql-database/23.1/sqlreferencefornosql/data-model.html
So let see what are the possibilities
Note: The JSON type represents all valid JSON values. Specifically, an instance of JSON can be
Any instance of a numeric type, the string type, and the boolean type is an instance of the ANYJSONATOMIC type as well. The json null value is also an instance of ANYJSONATOMIC.
We can continue to explore also the usage of Child Tables and we have some other features to come.
Finally, to start this discussion, let me show the code to insert data into my table order
I will provide more information in a next post in this discussion. Meanwhile, learn about Trade-offs while using Flexible Schema - Table Modelling and Design https://docs.oracle.com/en/database/other-databases/nosql-database/23.1/nsdev/table-modelling-and-design1.html
Beta Was this translation helpful? Give feedback.
All reactions