From c72f8a4c0ea85958a8d082685207c0255a658341 Mon Sep 17 00:00:00 2001 From: David Baker Effendi Date: Tue, 29 Mar 2022 20:53:40 +0200 Subject: [PATCH] :bookmark: Release v1.1.17 --- CHANGELOG.md | 7 +++++++ .../github/plume/oss/drivers/OverflowDbDriver.scala | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d29aa70..5c602059 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.17] - 2022-03-29 + +### Changed + +- `OverflowDbDriver::nodesReachableBy` does not initialize the data-flow engine with the last query's cache if results +are not being re-used. + ## [1.1.16] - 2022-03-29 ### Added diff --git a/src/main/scala/com/github/plume/oss/drivers/OverflowDbDriver.scala b/src/main/scala/com/github/plume/oss/drivers/OverflowDbDriver.scala index bf38f1f2..2e624946 100644 --- a/src/main/scala/com/github/plume/oss/drivers/OverflowDbDriver.scala +++ b/src/main/scala/com/github/plume/oss/drivers/OverflowDbDriver.scala @@ -399,11 +399,11 @@ final case class OverflowDbDriver( .foreach { case (n: StoredNode, v: Vector[ReachableByResult]) => tab.put(n.id(), v.map(SerialReachableByResult.apply)) } - case None => // Do nothing - } - // Reload latest results to the query engine context - results.map(_.table).collectFirst { resultTable => - setDataflowContext(context.config.maxCallDepth, context.semantics, Some(resultTable)) + // Reload latest results to the query engine context + results.map(_.table).collectFirst { resultTable => + setDataflowContext(context.config.maxCallDepth, context.semantics, Some(resultTable)) + } + case None => // Do nothing since no table means we aren't saving data and instead keeping memory low } }