Datasets with large amounts of data

  • Thread starter Thread starter mikeb
  • Start date Start date
M

mikeb

I came onboard to help finish a ppc application (vb.net cf) for a company.
The original developer is loading datasets from a sql server database for
data handling. This worked pretty well (but very messy coding in my
opinion) up until we started dumping some real life data to the scanner
(3000-4000 records).

With the large amount of data being loaded into the datasets lookups take an
exceptional amount of time to complete.

My first question is - if we were to convert the datahandling method to
sqlce, would this resolve the speed issue? Assuming we can index the data
properly.

Second is, is there any way to speed up a dataset search? They're using a
simple looking .select method to do the lookups:
ie. drow = dsVEKP.Tables(0).Select("UCC = 1234455566777")

Can you index a dataset?

Thanks!!

Mike
 
I'm a little confused so sorry for the questions...
1) Is this a webservice type app where data is being queried and then
transferred to the PDA to view or is the database actually residing on the
PDA?

2) Are you using datasets to store the data in order to display in your form
elements?

3) I'm a little confused about the comments of storing the data in
sqlserver db and then asking if things would speed up if they were in
sqlserver db. Either way, the datasets are going to be the middle ground
for storing the data for your components.

What types of searching/sorting are you doing that is slow? I think maybe a
little more info on what your app is doing might help provide a better
answer for you...

Sorry if I missed something that caused me to be more confused than
necessary...

glenn
 
I have other ppc apps that use sqlce, I don't use datasets. I'm not big on
bound controls if this is what you're asking about. Might be that I'm an
old timer and like more control of what goes on with my data being
displayed.

Regardless.

The app is not a web services app.

The gist of the app is that they will download new shipment records from the
host server onto the ppc. they then go out to the shipping dock and scan
shipments into a container. When they scan the 'shipment' the app does a
lookup to find the given record and then flips a bit to denote that the item
is loaded onto a container. When complete, they take the scanner back to
the computer, and upload those records to the host.

Datasets are loaded when the users presses a Get Data button. We open a
connection to the host's sql server, run a stored procedure to get a
recordset and then load that data into the dataset table. When complete,
the sql server connection is disconnected.

Data is displayed on the ppc screen as retrieved from the dataset. Its a
scanner app, so the users scan ucc barcodes to start the lookup process.
When a barcode is scanned the app finds the appropriate record, flips a
Shipped switch in the dataset table record.

When all data is collected for the day (half-day, hour, whatever), they will
upload that data to the sql server for processing via a stored procedure.

----

I'm trying to speed up the lookup process. Right now, they can have up to
5000 shipment records downloaded onto the handheld (into the dataset). When
they scan a barcode, the lookup can take a long time to find the right
record. If the shipment doesn't exist for the barcode scanned - this is the
worst case scenario; the whole dataset is scanned.

So, my question is - would storing the data in a sqlce database help speed
up this lookup process? I would index the table on the UCC code that is
scanned.

OR, can the dataset be indexed? or is there some other method to do quicker
lookups on a dataset?
 
Sure, you can use normal SQL CE queries like "Select * from WhateverTable
where UCC=1234455566777".

As to speeding up the search, are you m measuring the first search? How
about consequential ones?
Also try updating to SP3. This particular operation was optimized in SP2
and above

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Curious, when you say the operation was optimized in sp2 - are you talking
about dataset selects, or sql selects?


"Ilya Tumanov [MS]" said:
Sure, you can use normal SQL CE queries like "Select * from WhateverTable
where UCC=1234455566777".

As to speeding up the search, are you m measuring the first search? How
about consequential ones?
Also try updating to SP3. This particular operation was optimized in SP2
and above

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
From: "mikeb" <[email protected]>
Subject: Datasets with large amounts of data
Date: Wed, 16 Feb 2005 07:10:10 -0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 12.144.250.205
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22643
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I came onboard to help finish a ppc application (vb.net cf) for a company.
The original developer is loading datasets from a sql server database for
data handling. This worked pretty well (but very messy coding in my
opinion) up until we started dumping some real life data to the scanner
(3000-4000 records).

With the large amount of data being loaded into the datasets lookups take an
exceptional amount of time to complete.

My first question is - if we were to convert the datahandling method to
sqlce, would this resolve the speed issue? Assuming we can index the data
properly.

Second is, is there any way to speed up a dataset search? They're using a
simple looking .select method to do the lookups:
ie. drow = dsVEKP.Tables(0).Select("UCC = 1234455566777")

Can you index a dataset?

Thanks!!

Mike
 
That would be DataSet select.

Best regards,

Ilya


This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Subject: Re: Datasets with large amounts of data
Date: Wed, 16 Feb 2005 15:34:32 -0800
Lines: 70
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: dsl-66-243-234-82.elltel.net 66.243.234.82
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22687
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Curious, when you say the operation was optimized in sp2 - are you talking
about dataset selects, or sql selects?


"Ilya Tumanov [MS]" said:
Sure, you can use normal SQL CE queries like "Select * from WhateverTable
where UCC=1234455566777".

As to speeding up the search, are you m measuring the first search? How
about consequential ones?
Also try updating to SP3. This particular operation was optimized in SP2
and above

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
From: "mikeb" <[email protected]>
Subject: Datasets with large amounts of data
Date: Wed, 16 Feb 2005 07:10:10 -0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 12.144.250.205
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22643
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I came onboard to help finish a ppc application (vb.net cf) for a company.
The original developer is loading datasets from a sql server database for
data handling. This worked pretty well (but very messy coding in my
opinion) up until we started dumping some real life data to the scanner
(3000-4000 records).

With the large amount of data being loaded into the datasets lookups
take
an
exceptional amount of time to complete.

My first question is - if we were to convert the datahandling method to
sqlce, would this resolve the speed issue? Assuming we can index the data
properly.

Second is, is there any way to speed up a dataset search? They're
using
a
simple looking .select method to do the lookups:
ie. drow = dsVEKP.Tables(0).Select("UCC = 1234455566777")

Can you index a dataset?

Thanks!!

Mike
 
Back
Top