to_xml uses up huge amounts of memory. Whether I use to_xml on an activerecord object directly, or create a hash from the activerecord object and then call to_xml on the hash, creating a 1.6mb xml file eats up 50mb of ram in rails.
Maybe Matching Threads
- Problem in ActiveRecord#to_xml
- is it possible to make to_xml use underscore instead of dash?
- creating a computed column with activerecord for to_xml
- Confused about to_xml() in ActiveRecord::Base subclass
- Nested serialization with to_json and to_xml with array and hash element