Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does this entity result in so many index writes?
    text
    copied!<p>I have the following entity (specified via JDO):</p> <pre class="lang-java prettyprint-override"><code> @PersistenceCapable( identityType = IdentityType.APPLICATION, detachable = "true") public class Subscription { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; @Persistent private String user; @Persistent(defaultFetchGroup = "true") private Link feedUrl; @Persistent(defaultFetchGroup = "true") @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true") private Link hubUrl; @Persistent @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true") private String title; @Persistent(defaultFetchGroup = "true") @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true") private Set&lt;String&gt; seenEntryIds; } </code></pre> <p>(see full entity definition <a href="http://code.google.com/p/push-bot/source/browse/src/info/persistent/pushbot/data/Subscription.java" rel="nofollow">here</a>)</p> <p>It has only three indexed properties, <code>id</code>, <code>user</code> and <code>feedUrl</code>. When running on the dev server, the console says that each entity results in 6 write ops.</p> <p>However, when running in production, the quota details page says that there have been 4,276 entity put ops, and 164,110 index write ops, which gives an average of 38 index writes per entity. That's much higher than I would expect, and also much higher than what the dev server shows.</p> <p>I added the <code>gae.unindexed</code> property <a href="http://code.google.com/p/push-bot/source/detail?spec=svnf763dfe2c572eba2120af43f506989414c316d8e&amp;r=dec3233e544584424d74bfcc755837ebff21fe32" rel="nofollow">late yesterday</a>, and pushed the change then too. I would therefore expect all of the entity puts that happen today (which is what the quota details page reports) to not reflect any of the extra index writes.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload