aurora-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Farner" <>
Subject Re: Review Request 25815: Improve performance of fetching host attributes.
Date Fri, 19 Sep 2014 18:42:40 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Sept. 19, 2014, 6:42 p.m.)

Review request for Aurora, Maxim Khutornenko and Zameer Manji.

Bugs: AURORA-730

Repository: aurora


This patch enables the MyBatis "2nd level" cache [1] for the AttributeMapper namespace.  Based
on some ad-hoc local benchmarking, this improves performance by about 50x (when the cache
is primed).  MyBatis flushes these caches on insert/update, so it's important we don't unnecessarily
write to the table.  For this reason,  I've also suppressed no-op writes.


Diffs (updated)

  src/main/java/org/apache/aurora/scheduler/storage/db/ 1b18ad5ab8e640d64f5de0aebdc98d0f8dc411c2

  src/main/resources/org/apache/aurora/scheduler/storage/db/AttributeMapper.xml 53017c8806d2a5cdd1d181fd156afc9afca2faf7

  src/test/java/org/apache/aurora/scheduler/storage/db/ 4a31999559dce4cfe50b22fc97d1500c9528a242



./gradlew build -Pq

Lacking a story for performance testing, i failed to come up with a good way to prove that
these help.  Best answer i have is local testing (creating a store with ~20k attributes and
issuing 1M random queries is repeatably ~50x faster), and 100% line/branch test coverage to
prove we hit the no-op exit.


Bill Farner

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message