Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

ODTUG Webcast - Thinking Clearly about XML

1,960 views

Published on

Presentation slides used during ODTUG Webcast on the 19th of January explaining first steps in Oracle XMLDB (including extended demo's)

https://www3.gotomeeting.com/register/660686966

Published in: Technology, News & Politics
  • Be the first to comment

  • Be the first to like this

ODTUG Webcast - Thinking Clearly about XML

  1. 1. Thinking Clearly about XML Marco Gralike, Principal Database Consultant, AMIS Services BV, NLMarco Gralike
  2. 2. Thinking Clearly about…?Garbage? OakTalk: Garbage in / Garbage out ? Performance?
  3. 3. <XML/>
  4. 4. “What is the fastest way to get XML in the database…?”
  5. 5. “…it depends…”
  6. 6. (30 minutes )
  7. 7. Solution? “…outside the database via Java and external tables (csv)…”
  8. 8. XMLDB • NO cost option • C (native & embedded kernel) • Code maintained by Oracle
  9. 9. “So what is the fastest way to get XML in the database…?”
  10. 10. Tricky…?!
  11. 11. “So what is the fastest way to get XML in the database… … and useful in my case…?”
  12. 12. Garbage IN – Garbage OUT
  13. 13. Universal in Relational and XML
  14. 14. So how do we do this Relationally?
  15. 15. So how do we do this in XML?
  16. 16. <XML/> != “string”
  17. 17. <XML/> = “database”
  18. 18. Flexible, HumansNo Design Patterns
  19. 19. Strings = small & definedEname  pointer += 100;
  20. 20. <string1/><string2/><string3/>
  21. 21. <small/><verybigggr/><bigger/>
  22. 22. <verybigggr> <empno>1</empno><ename>Marco</ename> <empno>2</empno></verybigggr> <small/><verybigggr/><bigger/>
  23. 23. “XMLType” Container In Memory CLOB (document) (document)Object Relational Binary XML (data) (data)
  24. 24. fastinsert performance CLOB XMLType CLOB (domain) indexes XMLType Binary XML XMLType Object Relational fast select performance
  25. 25. Demo
  26. 26. Extra InformationOracle Whitepapers – Oracle XML DB : Choosing the Best XMLType Storage Option for Your Use Case (PDF) – Oracle XML DB : Best Practices to Get Optimal Performance out of XML Queries (PDF)Blog or Site – blog.gralike.com – Oracle OTN Forum

×