Upgrade to Pro — share decks privately, control downloads, hide ads and more …

apidays Paris 2024 - JSON Schema and Relational...

apidays Paris 2024 - JSON Schema and Relational Databases - Bridging the Gap, Loïc Lefèvre, Oracle

JSON Schema and Relational Databases : Bridging the Gap!
Loïc Lefèvre, Senior Product Manager at Oracle

apidays Paris 2024 - The Future API Stack for Mass Innovation
December 3 - 5, 2024

------

Check out our conferences at https://www.apidays.global/

Do you want to sponsor or talk at one of our conferences?
https://apidays.typeform.com/to/ILJeAaV8

Learn more on APIscene, the global media made by the community for the community:
https://www.apiscene.io

Explore the API ecosystem with the API Landscape:
https://apilandscape.apiscene.io/

Avatar for FOST, powered by apidays

FOST, powered by apidays PRO

December 31, 2024

More Decks by FOST, powered by apidays

Other Decks in Programming

Transcript

  1. JSON Schema and Relational Databases: Bridging the Gap! Loïc Lefèvre

    Oracle Database Senior Product Manager www.linkedin.com/in/loiclefevre @loiclefevre.bsky.social
  2. Bridging the Gap: Two Facets of Data Copyright © 2024,

    Oracle and/or its affiliates | APIDays Paris 2024 2 Everything looks like Objects Everything looks like Rows and Columns Data SQL
  3. Oracle Converged Database Copyright © 2024, Oracle and/or its affiliates

    | APIDays Paris 2024 3 Blockchain tables In-Database Machine Learning Spatial Relational Columnar analytics Property Graph/RDF Native Binary JSON/XML Text Data Transactional Event Queue Vector embeddings Internet of Things External Data
  4. JSON in the Oracle Database – Quick Update Copyright ©

    2024, Oracle and/or its affiliates | APIDays Paris 2024 4 12cR2 Dataguide, Columnar processing, Search index 12c (2014) JSON-text storage and query processing SODA APIs 18c GeoJSON, On statement Materialized Views, SODA for PL/SQL 19c Binary JSON storage (OSON), MongoDB API, Partial updates 21c Native JSON datatype, Multivalue index 23ai Duality views, JSON native collections, JSON Schemas, JS stored procedures, Performance…
  5. Copyright © 2024, Oracle and/or its affiliates | APIDays Paris

    2024 5 JSON Schemas Use Cases for Databases Performance Improvement • Leverage JSON schema vocabulary for databases • Allows casting field values into SQL datatypes (using extendedType) during DMLs • Ensure better performance for non-JSON-standard types: DATE, TIMESTAMP, INTERVAL, VECTOR… Relational Model Evolution • A JSON Full-Text search index can maintain table level Data Guide in real-time • Upon insertion of new fields, the table gets new virtual columns flattening JSON documents hierarchies to ease analytics with SQL Data Validation • Validate JSON schema and JSON documents • Report errors • Data Use Case Domains can leverage JSON Schema • Centralize JSON schema for client-side validation JSON Data Guide • Get JSON schema from JSON document(s) • Detect field types, optional fields, hierarchies… • Generate JSON schema from database objects (tables, views, Duality Views…) https://github.com/json-schema-org/vocab-database/blob/main/database.md React frontend using JSON Schema for • Form validation • Input field titles, descriptions, etc. • Using just one library: json-schema-form Central shared JSON Schemas repository • Provides JSON Schema on-demand • For JSON collections, relational tables, etc. • Augment JSON Schemas with Annotations, relational constraints, etc. HTTPS/GET JSON Schema HTTPS/PUT Valid JSON document REST Data Service (ORDS)
  6. Copyright © 2024, Oracle and/or its affiliates | APIDays Paris

    2024 6 One last word ☺ GitHub repository for demos source code → https://github.com/loiclefevre/apidays-paris-2024 You can use Oracle Database for FREE (Linux, Windows, MAC OS, Always Free Autonomous, and Container) { “credits”: “Thank You” } JSON Schemas help Relational Databases Bridging the Gap! Data