dbTalk Databases Forums  

Ultalite - Optimal method to use paging

sybase.public.sqlanywhere.ultralite sybase.public.sqlanywhere.ultralite


Discuss Ultalite - Optimal method to use paging in the sybase.public.sqlanywhere.ultralite forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mircea Patan
 
Posts: n/a

Default Ultalite - Optimal method to use paging - 09-12-2008 , 07:54 AM






I try to find the optimal method for paging tables (result of queries) with
many records.

Considerations: Ultralite on Windows Mobile(WM5) (C# or C++)





Method 1:



ULDataAdapter readAdapter = new ULDataAdapter("SELECT * FROM Table_A",
Connection);

DataSet readDataset = new DataSet();

readAdapter.Fill( readDataset, 1000, 10, "myresults" );



Elapsed Time= 7 seconds







Method 2:



ULCommand command = new ULCommand();

command.CommandText = "SELECT TOP 10 START AT 10000 * FROM tableB1";

command.CommandType = CommandType.Text;

ULDataReader reader = CommUL.ExecuteReader(
CommandBehavior.SequentialAccess );



Elapsed Time = seconds





Method 3



ULTable ulTable;

ulTable = ConnUL.ExecuteTable( "tableB1", "primary",
CommandBehavior.SequentialAccess );

ulTable.MoveRelative(10000);



Elapsed Time = 1.6 seconds





Basically I want what is the optimal method to Move to a specific page in a
result data set?

Everything is fine when numbers of rows are less than 10.000



Thanks



Reply With Quote
  #2  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM






"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #3  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #4  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #5  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #6  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #7  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #8  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #9  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
  #10  
Old   
David Fishburn
 
Posts: n/a

Default Re: Ultalite - Optimal method to use paging - 09-12-2008 , 09:29 AM



"Mircea Patan" <mpatan (AT) omniciel (DOT) com> wrote in
news:48ca667e$1@forums-1-dub of sybase.public.sqlanywhere.ultralite:

Your time from Method 2 was missing.

If you are performing timing tests, what is the final result from the
performance perspective of your application? Which was best?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng10 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/

Developer Community / Whitepapers
http://www.ianywhere.com/developer

Case-Express - to report bugs
http://case-express.sybase.com

CodeXchange - Free samples
http://ianywhere.codexchange.sybase....ctDocumentList


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.