You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@predictionio.apache.org by "Chan (JIRA)" <ji...@apache.org> on 2017/09/13 21:35:01 UTC
[jira] [Updated] (PIO-115) Cache name-to-ID lookups for Storage app
& channel
[ https://issues.apache.org/jira/browse/PIO-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chan updated PIO-115:
---------------------
Fix Version/s: 0.12.0-incubating
> Cache name-to-ID lookups for Storage app & channel
> --------------------------------------------------
>
> Key: PIO-115
> URL: https://issues.apache.org/jira/browse/PIO-115
> Project: PredictionIO
> Issue Type: Improvement
> Components: Core
> Affects Versions: 0.11.0-incubating
> Reporter: Mars Hall
> Assignee: Mars Hall
> Fix For: 0.12.0-incubating
>
>
> When stress testing the Universal Recommender with high-concurrency HTTP/REST queries, we observed that Elasticsearch traffic was majority composed of requests resolving the Storage app's name & channel, over and over and over again! In this case, [each per-query call to `LEventStore.findByEntity`|https://github.com/heroku/predictionio-engine-ur/blob/master/src/main/scala/URAlgorithm.scala#L694] re-resolves the app name to an ID.
> Implement memoization for the function that performs these name-to-ID lookups, so that only one set of lookups is performed per process for each app+channel combination.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)