Is it possible to store a million of records(xml files) into Basex database?
for(int j=1;j<1000000;j++) {
String id=String.valueOf(j);
String[] elems={"firstname","lastname","nickname","salary","permanentAddress","currentAddress","contactNo","email","alternateMail","FacebookName","Color"};
String[] childs = {id,"yong"+id,"mook kim"+id,"mkyong"+id,"100000"+id,"Bhopal"+id,"pune"+id,"999999999"+id ,"test"+id+"@basex.com","testA"+id+"@basex.com","Tom"+id,"grey"+id};
try
{
xmlFile= x.CreateXMLDoc("test","transperfect",elems,childs);
}
catch (TransformerConfigurationException exception)
{
exception.printStackTrace();
}
storeIntoBaseXDB(j,id,xmlFile);
}
No comments:
Post a Comment