From 4567264b91b16127f3a1897c0db4592d543f86bb Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Thu, 16 Aug 2007 21:53:47 +0000 Subject: [PATCH] We're not going to do this INDEX: comment thing. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@404 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../parlor/rating/server/persist/RatingRepository.java | 5 ----- .../com/threerings/stats/server/persist/StatRepository.java | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java b/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java index 91d9efe5..bcef6c06 100644 --- a/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java +++ b/src/java/com/threerings/parlor/rating/server/persist/RatingRepository.java @@ -54,7 +54,6 @@ public class RatingRepository extends DepotRepository public RatingRecord getRating (int gameId, int playerId) throws PersistenceException { - // INDEX: Full primary key. return load(RatingRecord.class, RatingRecord.getKey(gameId, playerId)); } @@ -62,8 +61,6 @@ public class RatingRepository extends DepotRepository * Fetch the ratings registered for any of the given players for the given game and return * them as a list of {@link RatingRecord} objects. The size of this list is no less than zero * and no greater than the number of given players. - * - * INDEXING: Uses primary key. */ public List getRatings (int gameId, Integer... players) throws PersistenceException @@ -71,7 +68,6 @@ public class RatingRepository extends DepotRepository if (players.length == 0) { return Collections.emptyList(); } - // INDEX: Full primary key. return findAll(RatingRecord.class, new Where(new And(new Equals(RatingRecord.GAME_ID_C, gameId), new In(RatingRecord.PLAYER_ID_C, players)))); @@ -83,7 +79,6 @@ public class RatingRepository extends DepotRepository public List getRatings (int playerId) throws PersistenceException { - // INDEX: ixPlayerId return findAll(RatingRecord.class, new Where(RatingRecord.PLAYER_ID_C, playerId)); } diff --git a/src/java/com/threerings/stats/server/persist/StatRepository.java b/src/java/com/threerings/stats/server/persist/StatRepository.java index c7da7d5e..9bf1a7fa 100644 --- a/src/java/com/threerings/stats/server/persist/StatRepository.java +++ b/src/java/com/threerings/stats/server/persist/StatRepository.java @@ -61,7 +61,6 @@ public class StatRepository extends DepotRepository throws PersistenceException { ArrayList stats = new ArrayList(); - // INDEX: Left-most primary key field; Where where = new Where(StatRecord.PLAYER_ID_C, playerId); for (StatRecord record : findAll(StatRecord.class, where)) { Stat stat = decodeStat(record.statCode, record.statData); @@ -88,7 +87,6 @@ public class StatRepository extends DepotRepository }); } }; - // INDEX: Primary key. deleteAll(StatRecord.class, new Where(StatRecord.PLAYER_ID_C, playerId), invalidator); } @@ -228,7 +226,6 @@ public class StatRepository extends DepotRepository throws PersistenceException { for (int ii = 0; ii < 10; ii++) { - // INDEX: Left-most primary key field. MaxStatCodeRecord maxRecord = load( MaxStatCodeRecord.class, new FromOverride(StringCodeRecord.class), @@ -257,7 +254,6 @@ public class StatRepository extends DepotRepository // if it is a duplicate row exception, possibly someone inserted our value // before we could, in which case we can just look up the new mapping - // INDEX: Full primary key. StringCodeRecord record = load( StringCodeRecord.class, StringCodeRecord.getKey(type.code(), value)); if (record != null) { @@ -282,7 +278,6 @@ public class StatRepository extends DepotRepository { QueryClause[] clauses; if (type != null) { - // INDEX: Left-most primary key field. clauses = new QueryClause[] { new Where(StringCodeRecord.STAT_CODE_C, type.code()) }; } else { clauses = new QueryClause[0];