Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

xml versus string manipulation
I've got a situation where I need to hold more segregated information
in a database than there are columns available to me (I can't change
the database structure unfortunately).
At the moment I'm putting the extra information into an XML string and
saving that to the database; When it's needed I parse the results with
the XMLDocument object.
I've got a sneaking suspicion that this might be a bit processor
intensive ;)
Has anyone got any thoughts as to whether the gains made in just
manipulating the string outweigh the handiness of having a dom of the
data available?

ben

Report this thread to moderator Post Follow-up to this message
Old Post
ben
08-17-04 08:57 PM


Re: xml versus string manipulation
"ben" <ben@hyl.co.uk> schreef in bericht
news:5e6153b0.0408170435.25df67a3@posting.google.com...
> I've got a situation where I need to hold more segregated information
> in a database than there are columns available to me (I can't change
> the database structure unfortunately).
> At the moment I'm putting the extra information into an XML string and
> saving that to the database; When it's needed I parse the results with
> the XMLDocument object.
> I've got a sneaking suspicion that this might be a bit processor
> intensive ;)
> Has anyone got any thoughts as to whether the gains made in just
> manipulating the string outweigh the handiness of having a dom of the
> data available?
>
> ben

Hi Ben,

I would prefer to use XML because you need less code for parsing, which
increases maintainability. Test to see if you get performance problems. If
so, you can still choose to trade in maintainability for performance.
Generally, you don't want to solve performance problems that don't exist.

Regards,
Wiebe



Report this thread to moderator Post Follow-up to this message
Old Post
Wiebe Hordijk
08-18-04 01:58 AM


Re: xml versus string manipulation
"Wiebe Hordijk" <wiebehordijk@spamnot.hccnet.nl> wrote in message news:<41227eb4$0$764$3a62
8fcd@reader10.nntp.hccnet.nl>...
> Hi Ben,
>
> I would prefer to use XML because you need less code for parsing, which
> increases maintainability. Test to see if you get performance problems. If
> so, you can still choose to trade in maintainability for performance.
> Generally, you don't want to solve performance problems that don't exist.
>
> Regards,
> Wiebe

Thanks for the input Wiebe.
I have to say I'd agree about maintainability, it's a lot easier to do
a 'SelectSingleNode' than deal with a horrible knot of substrings.
Out of interest, would you recommend a performance testing tool?

Report this thread to moderator Post Follow-up to this message
Old Post
ben
08-18-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

C# archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:45 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.