Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [TEXO] Performance issue during Serializing Objects into XMI using Texo's ModelXMLSaver([TEXO] Performance issue during Serializing Objects into XMI using Texo's ModelXMLSaver)
[TEXO] Performance issue during Serializing Objects into XMI using Texo's ModelXMLSaver [message #1422792] |
Sat, 13 September 2014 11:34 |
Sunny T Messages: 9 Registered: June 2013 |
Junior Member |
|
|
Hi Martin,
I am using Texo's ModelXMLSaver class to serialize Objects to XMI. I have around 90 entity classes in my project. And the relationship between these entities is pretty complex and all of the references are bi-directional (have their EOpposite set). There are approximately 50K records in total for all these entities in DB. These 50K records are fetched entity by entity and added to a List. This list of objects is then passed to the ModelXMLSaver and the write method is executed. To fetch rows of all entities the DB calls take only 5 minutes but to serialize this into XMI, the API is taking 96 minutes. Is there way to improve this performance? Does the order in which the entities are added to the List matter?
[Updated on: Sat, 13 September 2014 11:34] Report message to a moderator
|
|
| | | |
Re: [TEXO] Performance issue during Serializing Objects into XMI using Texo's ModelXMLSaver [message #1423368 is a reply to message #1423359] |
Sun, 14 September 2014 09:38 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Sunny,
Also replying to your email here, if a lot of time is spend in the createTarget method of the ModelEMFConverter. You can
replace the ModelEMFConverter with your own class (extending ModelEMFConverter) and then override the createTarget
method to print some information, or check the call count of the method.
https://wiki.eclipse.org/Texo/Components
Can you let me know what you see? Is createTarget called maybe a 'zillion' times?
gr. Martin
On 14-09-14 11:19, Sunny T wrote:
> Hi Martin,
>
> There are no additional sql queries that are being fired during the serialization. Yes, most of the time is spent in the
> serialize call. The strings are regular eattributes and nothing special about them and most of them are just name and
> description attributes.
>
> Also, I am using StringWriter as the writer, will this have any impact?
>
> Regards,
> Sunny
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
| | | |
Goto Forum:
Current Time: Tue Mar 19 04:34:36 GMT 2024
Powered by FUDForum. Page generated in 0.02536 seconds
|