error
alter()
Common exceptions of functions are as follows:
When an exception is thrown, you can () getLastError get an error code , or through ) getLastErrMsg ( get an error message. You can refer to the common error handling guide to learn more.
version
v2.10 and above.
Example
-
Create a collection space with a data page size of 4096, and then modify the data page size of the collection space to 8192.
db.createCS( 'sample', { PageSize : 4096 } ) > > db.sample.alter( { PageSize : 8192 } )
-
Create a collection space, and then specify a domain for the collection space
db.createCS( 'sample' ) db.sample.alter( { Domain : 'domain' } )
For more information, please click on the official website of Jushan Database