mozilla-services/android-sync — comment on commit c0c8705c38f29bef2df7ae9c0c3184314be2ff6f
File: src/main/java/org/mozilla/gecko/sync/stage/SyncClientsEngineStage.java line 142
By rnewman:

Ruh roh, Scooby. Be careful of caching. Remember, there are only two problems in computer science: naming things, cache invalidation, and off-by-one errors.

Querying the DB for the client record doesn't seem like it would be a bottleneck. Kill this.