Collection Contents Previous Next PDF

MobiLink Clients

Adaptive Server Anywhere Client Synchronization Parameters

dbmlsync options

dbmlsync extended options

DownloadReadSize (drs) extended option

Function 

For restartable downloads, specifies the maximum amount of data that may need to be resent after a communications failure.

Syntax 

dbmlsync -e drs= numberK | M ]; ...

Description 

The DownloadReadSize option is only useful when doing restartable downloads.

The download read size is specified in units of bytes. Use the suffix k or m to specify units of kilobytes or megabytes, respectively.

Dbmlsync reads the download stream in chunks. The DownloadReadSize defines the size of these chunks. When a communication error occurs, dbmlsync loses the entire chunk that was being processed. Depending on when the error occurs, the number of bytes lost will be between 0 and the DownloadReadSize -1. So for example, if the DownloadReadSize is 100 bytes and an error occurs after reading 497 bytes, the last 97 bytes read will be lost. Bytes that are lost in this way will be resent when the download is restarted.

In general, larger DownloadReadSize values result in better performance on successful synchronizations but result in more data being resent when an error occurs.

The typical use of this option is to reduce the default size when communication is unreliable.

The default is 32k.

This option has a short form and long form: you can use drs or DownloadReadSize.

You can also store extended options in the database. For more information about dbmlsync extended options, see dbmlsync extended options.

See also 
Example 

The following dbmlsync command line illustrates how you can set this option when you start dbmlsync:

dbmlsync -e "drs=100"

The following SQL statement illustrates how you can store this option in the database:

CREATE SYNCHRONIZATION SUBSCRIPTION
   TO sales_publication
   FOR ml_user1
   OPTION drs='100';

Collection Contents Previous Next PDF