title: Problem in writing record to Berkeley DB
body: <p>when i am writing 1033 record then it write successfully but when i am writing 5,00,000 record the it give following error</p>
  
  <pre><code>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.util.regex.Pattern.compile(Unknown Source)
      at java.util.regex.Pattern.&lt;init&gt;(Unknown Source)
      at java.util.regex.Pattern.compile(Unknown Source)
      at java.lang.String.split(Unknown Source)
      at java.lang.String.split(Unknown Source)
      at WriteDataUsingCursor.main(WriteDataUsingCursor.java:31)
  </code></pre>