Skip to content

Commit

Permalink
Disable property prefetching by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroecheler committed Sep 9, 2015
1 parent d037214 commit ec08807
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 7 additions & 0 deletions UPGRADE.asc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Upgrade Instructions

Please follow these instructions when upgrading from an older Titan release.

Version 1.0.0 (September 21, 2015)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Note that property pre-fetching is disabled by default in Titan 1.0 and future releases. That is, the `fast-property` configuration settings defaults to true. If you are relying on this setting to speed up multi-property access you need to enable `fast-property` explicitly.
Version 0.9.0-M2 (June 8, 2015)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ public class GraphDatabaseConfiguration {


public static final ConfigOption<Boolean> PROPERTY_PREFETCHING = new ConfigOption<Boolean>(QUERY_NS,"fast-property",
"Whether to pre-fetch all properties on first vertex property access. This can eliminate backend calls on subsequent" +
"Whether to pre-fetch all properties on first singular vertex property access. This can eliminate backend calls on subsequent" +
"property access for the same vertex at the expense of retrieving all properties at once. This can be " +
"expensive for vertices with many properties",
ConfigOption.Type.MASKABLE, Boolean.class);
ConfigOption.Type.MASKABLE, false);

public static final ConfigOption<Boolean> ADJUST_LIMIT = new ConfigOption<Boolean>(QUERY_NS,"smart-limit",
"Whether the query optimizer should try to guess a smart limit for the query to ensure responsiveness in " +
Expand Down Expand Up @@ -1567,9 +1567,7 @@ private void preLoadConfiguration() {
TX_DIRTY_SIZE_DEFAULT_WITHOUT_BATCH;
}

if (configuration.has(PROPERTY_PREFETCHING))
propertyPrefetching = configuration.get(PROPERTY_PREFETCHING);
else propertyPrefetching = null;
propertyPrefetching = configuration.get(PROPERTY_PREFETCHING);
useMultiQuery = configuration.get(USE_MULTIQUERY);
adjustQueryLimit = configuration.get(ADJUST_LIMIT);
allowVertexIdSetting = configuration.get(ALLOW_SETTING_VERTEX_ID);
Expand Down

0 comments on commit ec08807

Please sign in to comment.