| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Bulk transfer</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" /> |
| 10 | <link rel="up" href="rep.html" title="Chapter 12. Berkeley DB Replication" /> |
| 11 | <link rel="prev" href="rep_init.html" title="Initializing a new site" /> |
| 12 | <link rel="next" href="rep_trans.html" title="Transactional guarantees" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Bulk transfer</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="rep_init.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 12. |
| 26 | Berkeley DB Replication |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="rep_trans.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="rep_bulk"></a>Bulk transfer</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>Sites in a replication group may be configured to use bulk transfer by |
| 42 | calling the <a href="../api_reference/C/repconfig.html" class="olink">DB_ENV->rep_set_config()</a> method with the <a href="../api_reference/C/repconfig.html#config_DB_REP_CONF_BULK" class="olink">DB_REP_CONF_BULK</a> |
| 43 | flag. When configured for bulk transfer, sites will accumulate records |
| 44 | in a buffer and transfer them to another site in a single network |
| 45 | transfer. Configuring bulk transfer makes sense for master sites, of |
| 46 | course. Additionally, applications using client-to-client |
| 47 | synchronization may find it helpful to configure bulk transfer for |
| 48 | client sites as well.</p> |
| 49 | <p>When a master is generating new log records, or any information request |
| 50 | is made of a master, and bulk transfer has been configured, records will |
| 51 | accumulate in a bulk buffer. The bulk buffer will be sent to the client |
| 52 | if either the buffer is full or if a permanent record (for example, a |
| 53 | transaction commit or checkpoint record) is queued for the client.</p> |
| 54 | <p>When a client is responding to another client's request for information, |
| 55 | and bulk transfer has been configured, records will accumulate in a bulk |
| 56 | buffer. The bulk buffer will be sent to the client when the buffer is |
| 57 | full or when the client's request has been satisfied; no particular type |
| 58 | of record will cause the buffer to be sent.</p> |
| 59 | <p>The size of the bulk buffer itself is internally determined and cannot |
| 60 | be configured. However, the overall size of a transfer may be limited |
| 61 | using the <a href="../api_reference/C/repset_limit.html" class="olink">DB_ENV->rep_set_limit()</a> method.</p> |
| 62 | </div> |
| 63 | <div class="navfooter"> |
| 64 | <hr /> |
| 65 | <table width="100%" summary="Navigation footer"> |
| 66 | <tr> |
| 67 | <td width="40%" align="left"><a accesskey="p" href="rep_init.html">Prev</a> </td> |
| 68 | <td width="20%" align="center"> |
| 69 | <a accesskey="u" href="rep.html">Up</a> |
| 70 | </td> |
| 71 | <td width="40%" align="right"> <a accesskey="n" href="rep_trans.html">Next</a></td> |
| 72 | </tr> |
| 73 | <tr> |
| 74 | <td width="40%" align="left" valign="top">Initializing a new site </td> |
| 75 | <td width="20%" align="center"> |
| 76 | <a accesskey="h" href="index.html">Home</a> |
| 77 | </td> |
| 78 | <td width="40%" align="right" valign="top"> Transactional guarantees</td> |
| 79 | </tr> |
| 80 | </table> |
| 81 | </div> |
| 82 | </body> |
| 83 | </html> |