XML vs SQL data fields

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
petertu2000
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Wed Feb 20, 2008 4:30 pm

XML vs SQL data fields

Post by petertu2000 » Wed Feb 20, 2008 4:37 pm

I am working on a new website, and the XML file we will be getting from our vendors will have 82 fields. Will it make sense to build a new database for AbleCommerce or is it still OK to add extra fields from the XML files.

Anyone has any experience on this? Thanks.

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Wed Feb 20, 2008 5:56 pm

Hello,

Add a new table with the additional fields and join it based on product ID. That way upgrades are not an issue.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Wed Feb 20, 2008 9:28 pm

I pull an XML feed now.

My process involved creating a class for the XML data so it is strongly-typed in code for my import/update routines. Made it much easier to work with although null values are still the work of the devil himself.

I created a script that makes a new temporary table in SQL. Then I load the XML feed into the table. From there my code processes through all the records. The end of my code drops the table and the work is complete.

Probably not the most efficient, but speed isn't my enemy just yet - only about 10,000 items in the XML feed.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

petertu2000
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Wed Feb 20, 2008 4:30 pm

Thx

Post by petertu2000 » Thu Feb 21, 2008 1:51 pm

Hi All,

Thanks for your input.

Peter

Post Reply