Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional fan_in attribute conditions (in addition to 'time in seconds') #3

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

At present, the fan_in attribute accepts an integer representing 
time-in-seconds for how often the "boxcars should ship" 
http://code.google.com/p/fantasm/wiki/AdvancedConcepts.

Additional conditions could be very useful. Examples include:

- size: if the total size of the machine contexts is greater than 'size', batch 
the relevant machines.
- number: analogous to 'size', except the condition is number of some specified 
entity in each machine contexts (this can be distinct from the number of 
machines in cases where each machines operates on >1 entity).

These are extremely useful constructs when batching datastore and memcache 
operations. This is essential how the AppEngine mapreduce framework's mutation 
pool works. 
http://code.google.com/p/appengine-mapreduce/source/browse/trunk/python/src/mapr
educe/context.py#108

Original issue reported on code.google.com by saidimu on 6 Apr 2011 at 6:40

@GoogleCodeExporter
Copy link
Author

I should clarify that the 'size' attribute is mostly useful only for memcache 
batch operations (which have a 32MB aggregate limit since SDK 1.4.0). Batch 
datastore operations have no aggregate size limit (also since SDK 1.4.0)

http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes


Original comment by saidimu on 7 Apr 2011 at 3:10

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 15 Apr 2011 at 8:31

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant