asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yingyi Bu (Code Review)" <>
Subject Change in asterixdb[master]: Allow lazy loading for persistent local resources
Date Sat, 29 Aug 2015 16:29:49 GMT
Yingyi Bu has posted comments on this change.

Change subject: Allow lazy loading for persistent local resources

Patch Set 5:

File asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/resource/

Line 48:     private final Cache<String, LocalResource> resourcesCache;
> I'm not sure if we have a naming standard. I think resourcesCache is better
OK, fine for me. (though in many other places in the codebase, we usually use singular for
attributive nouns).

Line 205:     public HashMap<Long, LocalResource> loadAndGetAllResources() throws HyracksDataException
> RecoveryManager needs to have the complete map to use it during recovery.
In my opinion, a disk-access-transparent ResourceCache would serve the same purpose.  If a
lookup hit the cache, just return the resource; otherwise, read the resource from disk and
invalidate another cache line.  

The purpose for this change is for the situation that there are ~1M datasets in AsterixDB.
 But if we load everything here into the map, we probably will run into the same memory issue.

To view, visit
To unsubscribe, visit

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

View raw message