company logo

Database :: disableWrite - Disable write feature for database

The function will disable the write feature for the database. This will deny all requests for writing data to the database, except intermediate data (as for temporary extents or temporary indexes).

Any attempt to write persistent data to the database after write has been disabled will cause an exception (264).

The function can be called in order to avoid unnecessary client/master communication while building a result set when running a replication client. The intention is mainly, calling the function for test purposes in order to ensure, the no data is written to the server while evaluating the result.

The function will cause an error when being called from within a transaction.

Implementation details

Database  :: disableWrite (  )