MATLAB DATABASE TOOLBOX RELEASE NOTES Guía de usuario Pagina 471

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 684
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 470
cursor.fetch
7-41
setdbprefs('FetchInBatches’,'yes')
setdbprefs('FetchBatchSize’,'2')
conn = database('dbtoolboxdemo','','');
curs = exec(conn,'select * from productTable');
curs = fetch(curs);
A = curs.Data
A =
[ 9] [125970] [1003] [13] 'Victorian Doll'
[ 8] [212569] [1001] [ 5] 'Train Set'
[ 7] [389123] [1007] [16] 'Engine Kit'
[ 2] [400314] [1002] [ 9] 'Painting Set'
[ 4] [400339] [1008] [21] 'Space Cruiser'
[ 1] [400345] [1001] [14] 'Building Blocks'
[ 5] [400455] [1005] [ 3] 'Tin Soldier'
[ 6] [400876] [1004] [ 8] 'Sail Boat'
[ 3] [400999] [1009] [17] 'Slinky'
[10] [888652] [1006] [24] 'Teddy Bear'
cursor.fetch internally retrieves data in increments of two rows at a time. Tune the
FetchBatchSize setting depending on the size of the result set you expect to fetch.
For example, if you expect about a 100,000 rows in the output, a batch size of 10,000 is
a good starting point. The larger the FetchBatchSize value, the fewer trips between
Java and MATLAB, and the memory consumption is greater for each batch. The optimal
value for FetchBatchSize is decided based on several factors like the size per row
being retrieved, the Java heap memory value, the driver’s default fetch size, and system
architecture, and hence, can vary from site to site.
If 'FetchInBatches' is set to 'yes' and the total number of rows fetched is less than
'FetchBatchSize', MATLAB shows a warning message and then fetches all the rows.
The message is: Batch size specified was larger than the number of rows fetched.
You can exercise a row limit on the final output even when the FetchInBatches setting
is 'yes'.
setdbprefs('FetchInBatches’,'yes')
setdbprefs('FetchBatchSize’,'2')
curs = exec(conn,'select * from productTable');
curs = fetch(curs,3);
A = curs.Data
A =
Vista de pagina 470
1 2 ... 466 467 468 469 470 471 472 473 474 475 476 ... 683 684

Comentarios a estos manuales

Sin comentarios

Philips VR805 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für CD Spieler Philips VR805.
Wir stellen PDF-Handbücher Philips VR805 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung






Weitere Produkte und Handbücher für CD Spieler Philips

Modelle Dokumententyp
DVDQ40/022 Bedienungsanleitung    Philips DVDQ40/022 User's Manual, 26 Seiten
AZ382/12 Bedienungsanleitung   Philips AZ382/12 User's Manual, 2 Seiten
MZ1000 Bedienungsanleitung   Philips MZ1000 User's Manual, 25 Seiten
EXP4318 Bedienungsanleitung      Philips EXP4318 User's Manual, 82 Seiten
AZT3201 Bedienungsanleitung      Philips AZT3201 User's Manual, 10 Seiten
ACT 7585 Bedienungsanleitung      Philips ACT 7585 User's Manual, 65 Seiten
AZ3012/01 Bedienungsanleitung    Philips AZ3012/01 User's Manual, 8 Seiten
eXpanium EXP212 Bedienungsanleitung      Philips eXpanium EXP212 User's Manual, 2 Seiten
AZ 1565/00 Bedienungsanleitung       Philips AZ 1565/00 User's Manual, 63 Seiten
AZT3200 Bedienungsanleitung     Philips AZT3202/17 User manual, 14 Seiten
EXP2550/58 Bedienungsanleitung      Philips EXP2550/58 User manual, 2 Seiten
EXP3360 Bedienungsanleitung   Philips EXP3360 User's Manual, 12 Seiten
AZ7681 Bedienungsanleitung       Philips AZ7681 User's Manual, 132 Seiten
EXP220/01 Bedienungsanleitung   Philips EXP220/01 User manual, 5 Seiten
PORTABLE SPORT AUDIO PSA[CD Bedienungsanleitung      Philips PORTABLE SPORT AUDIO PSA[CD User's Manual, 14 Seiten
AX5311/17 Bedienungsanleitung   Philips AX5311/17 User manual, 13 Seiten
AZ7182 Bedienungsanleitung   Philips AZ7182 User's Manual, 2 Seiten
AZ2000/01 Bedienungsanleitung   Philips AZ2000/01 User's Manual, 11 Seiten
AX5301/00C Bedienungsanleitung   Philips AX5301/00C User's Manual, 2 Seiten
AZ 1145 Bedienungsanleitung      Philips AZ 1145 User's Manual, 53 Seiten