
05-18-2009 12:16 PM
Hi,
I created an import tool for accounts/contacts. When the import begins, it runs quite fast, but as it progresses, it gets slower and slower.
Does SLX Web implement its own garbage disposal, or is there something I have to do to free the memory that the entity object is using once I've saved it into the DB?
Thanks!
~ Henry
05-18-2009 10:31 PM
depends if you have coded your import tool with relevant methods such as set recordset = Nothing once you go out of the scope of the procedure. Declare local recordset variables and release them once they exit the function/procedure point.
Regards
Kannan
05-20-2009 08:46 AM
If you are using NHibernate to do the import they are going to get saved into the session and just stay there, at least until the page is unloaded. I think maybe some calls to EntityFactory.EvictAll() will help keep it low... but you will have to make sure that your stuff still saves! That is what I had to do when using NHibernate before (in a custom application - not through Saleslogix).
I have to ask - if you implemented it on the web client, did you run into timeout issues? I think the processing time is limited to something like 1.5 minute by default and curious to find out how you got around that.