There are a some, but not many, global configuration variables available for Apache MetaModel. On this page you can read about what they are and what they mean.

 

System propertyDefault valueDescription
metamodel.alias.default.tabletrueDefines whether or not to allow MetaModel to define alias tables with the name "default_table" when appropriate single-table datastores are created (for instance CsvDataContext). This allows for easier querying when the exact name is not relevant, e.g. SELECT * FROM default_table.
metamodel.jdbc.batch.updates(none)Allows you to define whether or not JDBC batch updates should be allowed or not. If not defined, the batch updates will happen when BatchUpdateScript is used and the JDBC driver allows JDBC batch updates.
metamodel.jdbc.convert.lobstrueWhether or not to automatically convert JDBC large objects (CLOB and BLOB) to/from String and Byte arrays automatically, instead of using java.sql.Clob and java.sql.Blob classes.
metamodel.jdbc.compiledquery.pool.max.size-1The maximum amount of active uses of the same JDBC PreparedStatement, backing a CompiledQuery.
metamodel.jdbc.compiledquery.pool.idle.timeout500The number of milliseconds to sleep before a lease in the pool that manages the prepared statements is considered idle.
metamodel.jdbc.compiledquery.pool.eviction.period.millis1000The number of milliseconds to sleep between runs of the idle object evictor thread in the pool of prepared statements, backing a compiled query.
metamodel.dynamodb.throughput.capacity.read5The "read throughput capacity" variable to pass to Amazon DynamoDB when creating new tables.
metamodel.dynamodb.throughput.capacity.write5The "write throughput capacity" variable to pass to Amazon DynamoDB when creating new tables.
metamodel.elasticsearch.strip_invalid_field_charstrueDetermines whether MetaModel can automatically strip away invalid characters from field/column names defined in an ElasticSearch datastore. If this is set to false, and an invalid character occurs, an IllegalArgumentException will be thrown when creating the DataContext.
  • No labels