-1

I am developing an application where I will store complex XMLs in Snappydata for future analysis.

For better analysis performance and lower memory consumption, what do you recommend? Store in xml, json or object?

Previously, thanks for your attention.

1 Answers1

1

Obtain a DataFrame from your XML source and save into a Row or Column table in SnappyData.

Something like this if SQL is your preferred choice .... (Refer to docs for DF API)

snappy> CREATE external TABLE myXMLTable USING com.databricks.spark.xml
   OPTIONS (path "pathToYourXML.xml", rowTag "Refer to docs link below");

snappy> create table myInMemoryTable using column as (select * from myXMLTable);

https://github.com/databricks/spark-xml

jagsr
  • 535
  • 2
  • 6