Skip to content

Neo4J Specific Configuration

xamry edited this page Mar 8, 2013 · 4 revisions

Neo4J specific XML configuration file, if put into classpath, is used by Kundera during its interaction with Neo4j database. These properties are same as those specified in neo4j.properties. A sample XML configuration file is given below: (Snippet from https://github.com/impetus-opensource/Kundera/blob/trunk/kundera-neo4j/src/test/resources/kunderaNeo4JTest.xml)

<?xml version="1.0" encoding="UTF-8"?>
<clientProperties>
<datastores>
<dataStore>
	<name>neo4j</name>
	<connection>
	<properties>
		<!-- Native queries would be assumed to be this one, can't be overidden 
			at operation level -->
		<property name="default_native_query_language" value="lucene"></property>

		<property name="all_stores_total_mapped_memory_size"
			value="500M"></property>
		<property name="allow_store_upgrade" value="false"></property>
		<property name="array_block_size" value="120"></property>
		<property name="backup_slave" value="false"></property>
		<property name="cache_type" value="soft"></property>
		<property name="cypher_parser_version" value="1.8"></property>
		<property name="dump_configuration" value="false"></property>
		<!--<property name="forced_kernel_id" value=""></property> -->
		<property name="gc_monitor_threshold" value="200ms"></property>
		<property name="gc_monitor_wait_time" value="100ms"></property>
		<property name="gcr_cache_min_log_interval" value="60s"></property>
		<property name="grab_file_lock" value="true"></property>
		<property name="intercept_committing_transactions" value="false"></property>
		<property name="intercept_deserialized_transactions"
			value="false"></property>
		<property name="keep_logical_logs" value="true"></property>
		<property name="log_mapped_memory_stats" value="false"></property>
		<property name="log_mapped_memory_stats_filename" value="mapped_memory_stats.log"></property>
		<property name="log_mapped_memory_stats_interval" value="1000000"></property>
		<property name="logging.threshold_for_rotation" value="104857600"></property>
		<property name="logical_log" value="nioneo_logical.log"></property>
		<property name="lucene_searcher_cache_size" value="2147483647"></property>
		<property name="lucene_writer_cache_size" value="2147483647"></property>
		<property name="mapped_memory_page_size" value="1M"></property>
		<property name="neo_store" value="neostore"></property>
		<property name="neostore.nodestore.db.mapped_memory"
			value="20M"></property>
		<property name="neostore.propertystore.db.arrays.mapped_memory"
			value="130M"></property>
		<property name="neostore.propertystore.db.index.keys.mapped_memory"
			value="1M"></property>
		<property name="neostore.propertystore.db.index.mapped_memory"
			value="1M"></property>
		<property name="neostore.propertystore.db.mapped_memory"
			value="90M"></property>
		<property name="neostore.propertystore.db.strings.mapped_memory"
			value="130M"></property>
		<property name="neostore.relationshipstore.db.mapped_memory"
			value="100M"></property>

		<!--Controls the auto indexing feature for nodes. Setting to false shuts 
			it down, while true enables it by default for properties listed in the node_keys_indexable 
			setting. -->
		<property name="node_auto_indexing" value="true"></property>
		<property name="node_cache_array_fraction" value="1.0"></property>
		<!--<property name="node_cache_size" value=""></property> -->
		<property name="node_keys_indexable"
			value="ACTOR_ID,ACTOR_NAME,ACTOR_ID_PREFIX,ACTOR_ID_SUFFIX,MOVIE_ID,TITLE,YEAR,CERTIFICATION,SERIAL_NUMBER,actorId,movieId"></property>
		<property name="query_cache_size" value="100"></property>
		<property name="read_only" value="false"></property>
		<property name="rebuild_idgenerators_fast" value="false"></property>

		<!-- Controls the auto indexing feature for relationships. Setting to 
			false shuts it down, while true enables it by default for properties listed 
			in the relationship_keys_indexable setting. -->
		<property name="relationship_auto_indexing" value="true"></property>
		<property name="relationship_cache_array_fraction" value="1.0"></property>
		<!-- <property name="relationship_cache_size" value=""></property> -->
		<property name="relationship_keys_indexable" value="ROLE_NAME,ROLE_TYPE,roleId"></property>
		<property name="remote_logging_enabled" value="false"></property>
		<property name="remote_logging_host" value="127.0.0.1"></property>
		<property name="remote_logging_port" value="4560"></property>

		<!-- The directory where the database files are located. -->
		<!--<property name="store_dir" value=""></property> -->
		<property name="string_block_size" value="120"></property>
		<!--<property name="tx_manager_impl" value=""></property> -->
		<!--<property name="use_memory_mapped_buffers" value=""></property> -->
	</properties>
	</connection>
</dataStore>
</datastores>
</clientProperties>

<<< Back to Datastore Specific Configuration

Home

Clone this wiki locally