You are here:  » More infomation during import?

Support Forum



More infomation during import?

Submitted by Frank on Mon, 2008-06-02 22:09 in

Hello,

I want to optimize the import function for my big feeds.

In admin__importRecordHandler I insert a counter to get the number of a failed product.
It works on csv, but it isn't very helpful in a XML feed.
Is there a way to get the number of the start line of the current item in the XML from magicparser?

Another question, is there a way to show the number of imported items while the import?
Maybe AJAX? And how can I insert this?

Best regards,

Frank

Submitted by support on Tue, 2008-06-03 08:09

Hello Frank,

I've emailed you an alternative version of admin/feeds_import.php that does display progress information.

Unfortunately, there isn't any easy way to identify the current position within an XML feed, as many do not even have new-lines separating records as there is no need for this within XML. What I tend to do when needing to find a problem position within XML is to print something that is unique to that record (i.e. the product name) and then search for that within the XML - assuming that it is small enough to be handled easily by a text editor...

Cheers,
David.