prathibhas
Fri Nov 16 01:08:53 PST 2007
On Nov 16, 11:44 am, Jin Chang <jinsooch...@gmail.com> wrote:
> On Nov 15, 9:38 pm, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
>
>
>
>
>
> > This might be of interest:
>
> >
http://community.opennetcf.com/articles/cf/archive/2007/09/21/improvi...
>
> > --
>
> > Chris Tacke, eMVP
> > Join the Embedded Developer Community
http://community.opennetcf.com
>
> > <prathib...@aztecsoft.com> wrote in message
>
> >news:1194931360.200702.304720@s15g2000prm.googlegroups.com...
>
> > > Hi,
>
> > > In my project, iam parsing many xml files and storing their content
> > > into sql server ce database as many tables using primary and foreign
> > > key relationship.
> > > Iam using VS2005,WM6(Compact framework and SQL server ce) platform.
> > > To store 5 xml files parsed content(each file is around 150kb)it is
> > > taking around 8mins.
> > > Iam using simple commands, create, insert,update to write into
> > > database, to retreive the data iam using SqlCeDataReader/
> > > SqlCeResultSet.
>
> > > Note: Iam opening the connection when it is required and closing it
> > > after its usage.
>
> > > Please let me know, on how to improve the performance.
>
> > > Thanks and Regards,
> > > Prathibha
>
> It's funny that you should provide that link (and you are the author!)
> because I've already studied that... Very useful indeed. I have an
> application that has several table-based lookup values, which I load
> into memory for faster processing. Not as elaborate as your method
> since the table rows are limited. I have your page bookmarked just in
> case I need that approach later.
>
> Kudos!
>
> - Jin- Hide quoted text -
>
> - Show quoted text -
Thanks a lott for replying to my query.
I will go through the points and incorporte them in my code and let
you know the performance.
I feel that opening and closing connection many times, is one of the
main reason for slow performance.
Because, 1st i was opening the connection, when i was starting xml
parsing and closing the connection after completion of that particular
file.It was pretty faster. But i was getting time out exception and
complete xml content was not stored.
So i gave open and close connection, for every catalogMenu (Iam using
a catalog xml files, which has catalog menu, catalog items inside that
and storing them in database). By giving that way timeout problem was
solved but it started taking more time.
Please suggest me how to go about with this?