Re: [basex-talk] Reg : Collection Creation For Huge XML

2014-11-22 Thread Christian Grün
Dear Chandra, We are adding the 4gb xml file to the collection,while adding the file we are getting the out of main memory.My java application has the 4gb memory.Can you please help me on this.We are using the LocalSession for creating the collection. Please give me some more hints: * How

Re: [basex-talk] Reg : Collection Creation For Huge XML

2014-11-22 Thread Chandrasekhar
Dear Team How large is the database before you add the 4gb file? Can you successfully create a database from this XML file? Do you use LocalSession.execute() or LocalSession.add() for adding the file? Maybe you can send me your code.

Re: [basex-talk] Reg : Collection Creation For Huge XML

2014-11-22 Thread Christian Grün
localSess.execute(CREATE DB + DBNAME); localSess.add(FILENAME, new FileInputStream(new File(FILEPATH))); Could you try the following alternatives? localSess.create(DBNAME, new FileInputStream(new File(FILEPATH))); or localSess.execute(CREATE DB DBNAME FILEPATH); Hope this