new GraphDatabaseFactory().newGraphDatabaseBuilder(). loadPropertiesFromURL/File(path).newGraphDatabase()
https://neo4j.com/docs/java-reference/current/javadocs/org/neo4j/graphdb/factory/GraphDatabaseBuilder.html#loadPropertiesFromURL-java.net.URL- On Wed, Mar 8, 2017 at 6:06 PM, Sun Yuhan <wdmzs...@gmail.com> wrote: > Thanks for your detailed explanation. > > So how can I set the config file? My current instance is initialized by > using the following code: > > graphDb = new GraphDatabaseFactory().newEmbeddedDatabase(dbpath); > > Thanks, > > On Wednesday, March 8, 2017 at 3:44:52 AM UTC-7, Michael Hunger wrote: >> >> The default settings in code: https://github.com/neo4j >> /neo4j/blob/3.1/community/kernel/src/main/java/org/neo4j/graphdb/factory/ >> GraphDatabaseSettings.java >> >> A config file is only read if you specify it. >> >> And there is no correlation between a neo4j server and your embedded use. >> None at all. >> >> On Wed, Mar 8, 2017 at 5:17 AM, Sun Yuhan <wdmz...@gmail.com> wrote: >> >>> When I am using neo4j by using java api, I do the following: >>> >>> graphDb = new GraphDatabaseFactory().newEmbeddedDatabase(dbpath); >>> >>> If I do this, what is the configuration status of the neo4j instance? >>> For example the cache size. I guess it can have two choices: One is to read >>> the configuration file in neo4j folder named with neo4j.property. Another >>> one is there are some default settings. Which one is chosen in this case? >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Neo4j" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to neo4j+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.