Skip to content

Comment on Google App Engine's Datastore Admin is Terribly Inefficientparent

Comments

Regardless of how decent Google's AppEngine documentation is, this is indeed a bug.

The correct behavior would be to recalculate the indices just once, instead of reindexing after every single delete operation.

It then becomes

    2*entities + 2*indexed property values + composite index values
operations to delete all entities in the datastore, instead of
    2*entities + 2*entities*indexed property values + entities*composite index values
operations.

To delete all entities should be free. Who cares about indexes? `rm -rf`, done.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.