summaryrefslogtreecommitdiff
path: root/examples/beaker_caching
Commit message (Collapse)AuthorAgeFilesLines
* - converted beaker demo to dogpile.cache, [ticket:2589]Mike Bayer2012-10-219-840/+0
|
* -whitespace bonanza, contdMike Bayer2012-07-289-43/+43
|
* - [bug] Altered _params_from_query() functionMike Bayer2012-02-141-4/+8
| | | | | | | in Beaker example to pull bindparams from the fully compiled statement, as a quick means to get everything including subqueries in the columns clause, etc.
* - The horizontal_shard ShardedSession class accepts the commonMike Bayer2011-03-161-2/+2
| | | | | | | | Session argument "query_cls" as a constructor argument, to enable further subclassing of ShardedQuery. [ticket:2090] - The Beaker caching example allows a "query_cls" argument to the query_callable() function. [ticket:2090]
* - Beaker example now takes into account 'limit'Mike Bayer2011-02-131-2/+5
| | | | | | and 'offset', bind params within embedded FROM clauses (like when you use union() or from_self()) when generating a cache key.
* - whitespace removal bonanzaMike Bayer2011-01-027-79/+79
|
* - fix beaker caching example to use new ".callable" param on bindMike Bayer2010-12-221-9/+14
|
* add a noteMike Bayer2010-08-251-0/+8
|
* etcMike Bayer2010-07-211-3/+6
|
* this would help, rightMike Bayer2010-07-211-0/+256
|
* - The beaker_caching example has been reorgnizedMike Bayer2010-07-219-280/+52
| | | | | | | | such that the Session, cache manager, declarative_base are part of environment, and custom cache code is portable and now within "caching_query.py". This allows the example to be easier to "drop in" to existing projects.
* - converted all lazy=True|False|None to 'select'|'joined'|'noload'Mike Bayer2010-03-242-7/+7
| | | | | - converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
* - The official name for the relation() function is nowMike Bayer2010-03-174-30/+30
| | | | | | relationship(), to eliminate confusion over the relational algebra term. relation() however will remain available in equal capacity for the foreseeable future. [ticket:1740]
* try to clarify intent some moreMike Bayer2010-02-142-73/+66
|
* - Changed the beaker cache example a bit to have a separateMike Bayer2010-02-124-50/+91
| | | | | | | RelationCache option for lazyload caching. This object does a lookup among any number of potential attributes more efficiently by grouping several into a common structure. Both FromCache and RelationCache are simpler individually.
* use issubclass here, allows lazy loads from a subclass to hit a loader that ↵Mike Bayer2010-01-211-1/+1
| | | | was configured on base
* - mega example cleanupMike Bayer2010-01-197-108/+123
| | | | | | - added READMEs to all examples in each __init__.py and added to sphinx documentation - added versioning example - removed vertical/vertical.py, the dictlikes are more straightforward
* local session caching exampleMike Bayer2010-01-132-0/+102
|
* add more examples, start basicMike Bayer2010-01-135-14/+80
|
* OK, you can't merge NamedTuples and such. Fine. New query method.Mike Bayer2010-01-121-1/+1
|
* yes you can even set_value(). I'm using it to prepopulate individual ↵Mike Bayer2010-01-121-1/+6
| | | | | | "by_id" elements from a multiple-row SELECT.
* have paths represented as their actual mapper, not the base mapper, allowingMike Bayer2010-01-111-1/+1
| | | | | more information for custom mapper opts to see what's going on. add a new _reduce_path() function to apply to the path as stored in dictionaries, adds a slight cost overhead.
* add option to hardcode a cache keyMike Bayer2010-01-111-4/+17
|
* compare class in the given path with our own class using issubclass, since pathsMike Bayer2010-01-111-1/+1
| | | | are always against the base class
* memcached wants thisMike Bayer2010-01-111-0/+3
|
* ensure criterion is not NoneMike Bayer2010-01-111-1/+2
|
* - cut down on a few hundred method callsMike Bayer2010-01-114-5/+4
|
* - merge() will not issue a needless merge of attributes if theMike Bayer2010-01-107-0/+551
given instance is the same instance which is already present. - merge() now also merges the "options" associated with a given state, i.e. those passed through query.options() which follow along with an instance, such as options to eagerly- or lazyily- load various attributes. This is essential for the construction of highly integrated caching schemes. This is a subtle behavioral change vs. 0.5. - A bug was fixed regarding the serialization of the "loader path" present on an instance's state, which is also necessary when combining the usage of merge() with serialized state and associated options that should be preserved. - The "query_cache" examples have been removed, and are replaced with a fully comprehensive approach that combines the usage of Beaker with SQLAlchemy. New query options are used to indicate the caching characteristics of a particular Query, which can also be invoked deep within an object graph when lazily loading related objects. See /examples/beaker_caching/README.