Skip to content

Commit

Permalink
Add flags to improve RouterServer MapDB perf
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwilliams1025 committed Dec 22, 2022
1 parent c702076 commit f3c2101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grpc/src/main/java/com/replica/RouterServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private void start() throws Exception {

File linkMappingsDbFile = new File("transit_data/gtfs_link_mappings/gtfs_link_mappings.db");
if (linkMappingsDbFile.exists()) {
DB db = DBMaker.newFileDB(linkMappingsDbFile).readOnly().make();
DB db = DBMaker.newFileDB(linkMappingsDbFile).transactionDisable().mmapFileEnable().readOnly().make();
gtfsLinkMappings = db.getHashMap("gtfsLinkMappings");
gtfsRouteInfo = db.getHashMap("gtfsRouteInfo");
gtfsFeedIdMapping = db.getHashMap("gtfsFeedIdMap");
Expand Down

0 comments on commit f3c2101

Please sign in to comment.