[Xbrlapi-developer] Difficulties working with the rendering example
Brought to you by:
shuetrim
From: Matthew D. <ro...@gm...> - 2011-07-08 19:50:35
|
Hi Geoff, Following your suggestion, I have started to work with aspects and dimensions. I have been using your rendering example (org.xbrlapi.data.bdbxml.examples.render, Run.java) as a template, since it uses fact sets and aspect values in a number of ways. After some problems with my own code, I attempted to run your Run.java example as is, on http://www.sec.gov/Archives/edgar/data/93751/000119312510036481/stt-20091231.xml, which is in the data store. It takes a long time to run (upwards of a half hour), and fails with an Out of Memory Error after line 394 (once it starts building childConcepts). My memory is set to 2G (out of 4G system memory), which I should think would be sufficient for a single instance document. As mentioned above, I have also been running into problems with my own code, attempting to load all of the Facts in a particular instance into a FactSet. Specifically, if I retrieve all Facts from an instance, and attempt to use addFacts() to add those Facts to the FactSet, I get an Out of Memory Error. I have taken to loading the Facts one by one into the FactSet, which bypasses the memory error, but is extremely slow: each Fact takes many minutes (while writing, I have watched one take over 10 minutes). This does not make sense to me: if all of the Facts can be retrieved from the instance in a few seconds, I do not see why adding the Facts to the FactSet should take so long. In an attempt to speed the process up, I ran your utility to persist relationships (org.xbrlapi.data.bdbxml.examples.utilities, PersistAllRelationshipsInStore.java), but this did not help. I am beginning to suspect that there is something wrong with my installation, but I am not sure how to figure out what. Do you have any idea why these functions are eating so much memory and CPU on my system? I don't think that I will be able to use dimensions and aspects for my project (which will analyze over 500 annual reports) if I cannot solve these issues. Regards, Matt |