datastax - Modelling Cassandra from XML & C# -


i beginner cassandra. finding difficult model xml file attached.

my requirement is:

  1. i many xml files given below on daily basis. need write c# program read xml , store in cassandra.
  2. once stored, data read 1000's of customers 1000's of times. once data stored, not updated again.

note: possible each parent node (ex: customer/site...) may appear more no. of times. i.e may have customer2, site2, equipmentdetails node etc.

my xml:

<?xml version="1.0" standalone="yes"?> <myanalystxmlreport>   <mc-domainid id="xyz123">     <customer name="customer1" id="53043">       <site name="site1" id="488688">         <equipmentdetails>           <equipmentdescription>test desc</equipmentdescription>           <equipmentrefid>t3567111</equipmentrefid>           <componentdescription>com oil</componentdescription>           <componentrefid>           </componentrefid>           <ananlystno>1235lkju</ananlystno>           <componenttype>testcomp</componenttype>           <sample sampleno="976023696">             <samplecondition>usual</samplecondition>             <analysiscomments>test comments</analysiscomments>             <daterecieved>2015-12-10</daterecieved>             <dateanalysed>2015-12-18</dateanalysed>             <equipmentlife>             </equipmentlife>             <lubricantlife>             </lubricantlife>             <topupvolume>0</topupvolume>             <fuelused>             </fuelused>             <tests>               <testgroup name="group name1" id="667">                 <test name="test name1" id="1785">                   <result>171.3</result>                 </test>               </testgroup>               <testgroup name="group name2" id="617">                 <test name="test name2" id="1763">                   <result>153.40</result>                 </test>               </testgroup>             </tests>           </sample>         </equipmentdetails>       </site>     </customer>   </mc-domainid> </myanalystxmlreport> 

how model xml in efficient way achieve requirement? , easiest way store data data & model in cassandra using c#. example appreciated.

thanks help.

so begin, modelling data use in cassandra bit different traditional rdbms. first suggestion @ link:

http://www.datastax.com/dev/blog/basic-rules-of-cassandra-data-modeling

basically cassandra using table-per-query methodology determine data models. means need know how application query data , model logical , physical persistance models after that. datastax has excellent tutorial videos on cassandra in general , data modelling specifically. see here:

https://academy.datastax.com/courses/ds220-data-modeling

as far how use c#, there video on how started using c# here:

https://academy.datastax.com/demos/getting-started-apache-cassandra-and-c-net


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -