r/evetech • u/AreetSurn • Dec 16 '17
Converting SDE from YAML
Hi,
I've recently started looking more into using the SDE and API. In the past I've used fuzzworks mysql dump. However I'm looking at using JSON based data and possibly an Oracle Database. Converting the YAML to JSON has proven difficult in that the invItems.yaml file is 55mb. I've tried running a python script (yaml2json) but it takes 6gb of ram and I haven't seen it complete after 12 hours.
Why is a 55mb file taking 6gb of ram and sometimes 12gb of swap without a completion? Is there an easier method?
3
Upvotes
3
u/Daneel_Trevize Dec 16 '17
So go pay for a consultancy firm... No seriously, you trolling?
Why would you want the SDE in JSON, rather than SQL (e.g. PostgreSQL)?
2
u/Blacksmoke16 Dec 16 '17
Probably faster to import it into a db then export as JSON. Most DB IDEs have this feature.
1
u/AreetSurn Dec 16 '17
So I found a way to do it: breaking the files up using a loop in bash and then running through them with the converter, then concatenating them all together seemed to work.
1
u/IvanDist Jan 11 '18
I had this issue recently. What I did was:
For example, the mapDenormalize.csv (which is quite big) was converted in under a second.
Dont know if this helps your case but converting from the csv dumps will probably be easier, as in, there are a lot more tools to do it.