Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 550341047C for ; Sat, 29 Aug 2015 16:59:14 +0000 (UTC) Received: (qmail 74219 invoked by uid 500); 29 Aug 2015 16:59:14 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 74160 invoked by uid 500); 29 Aug 2015 16:59:14 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 74149 invoked by uid 99); 29 Aug 2015 16:59:13 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Aug 2015 16:59:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 710C9EF709 for ; Sat, 29 Aug 2015 16:59:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id C9eqsgF7lRXs for ; Sat, 29 Aug 2015 16:59:06 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 4184A2139C for ; Sat, 29 Aug 2015 16:59:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 61E76241050; Sat, 29 Aug 2015 09:57:07 -0700 (PDT) Date: Sat, 29 Aug 2015 09:57:07 -0700 From: "Yingyi Bu (Code Review)" To: Murtadha Hubail CC: Jenkins , abdullah alamoudi , Young-Seok Kim , Yingyi Bu , Ian Maxon Reply-To: buyingyi@gmail.com X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: Allow lazy loading for persistent local resources X-Gerrit-Change-Id: I48b9260a3280750145f6ddb3783673a299055910 X-Gerrit-ChangeURL: X-Gerrit-Commit: d405eec320ad5a8c2d5f5860358b69df916601f4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.8.4 Message-Id: <20150829165707.61E76241050@unhygienix.ics.uci.edu> Yingyi Bu has posted comments on this change. Change subject: Allow lazy loading for persistent local resources ...................................................................... Patch Set 5: (1 comment) https://asterix-gerrit.ics.uci.edu/#/c/344/5/asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/resource/PersistentLocalResourceRepository.java File asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/resource/PersistentLocalResourceRepository.java: Line 205: public HashMap loadAndGetAllResources() throws HyracksDataException { > In my opinion, a disk-access-transparent ResourceCache would serve the same Is it possible to have yet-another resourcesCache for that maps an ID to the Resource (or name string), so that we always use bounded amount of memory? It looks not possible with the current physical metadata storage because the resources are physically identified by the metadata file name, unless we add other two files that one contains a map and the other contains all the names. -- To view, visit https://asterix-gerrit.ics.uci.edu/344 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I48b9260a3280750145f6ddb3783673a299055910 Gerrit-PatchSet: 5 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Murtadha Hubail Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: Young-Seok Kim Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes