Commits on Mar 5, 2016
  1. @nickmarden

    Octopus 0.8.6

    nickmarden committed Mar 5, 2016
Commits on Mar 3, 2016
  1. @nickmarden

    Merge pull request #357 from nickmarden/remove-ar-extends

    Get rid of ActiveRecord extensions to minimize constant cache invalidation
    nickmarden committed Mar 3, 2016
Commits on Feb 22, 2016
  1. @jcoleman @nickmarden

    Fix Relation#every?/all on Rails 3.

    In Rails 4 we have make Association#target_scope a sharded method so
    that everything remains wrapped in an Octopus proxy. But in Rails 3
    we also need to do the same thing with CollectionProxy#scoped to handle
    these special methods on relations/collection proxies.
    jcoleman committed with nickmarden Feb 19, 2016
  2. @nickmarden

    Association#target_scope results -> Octopus::RelationProxy via run_on…

    …_shard
    
    It seems that the "double-select" issues that were addressed by the
    introduction of Octopus::AssociationShardTracking::QueryOnCurrentShard
    were simpler to handle by simply guaranteeing that, whenever a call to
    AR::Association#target_scope returns an AR::Relation, it is cast into
    an Octopus::RelationProxy so that future calls against that relation are
    guaranteed to point to the correct shard.
    nickmarden committed Oct 12, 2015
  3. @nickmarden

    Tidy up so that I can think

    nickmarden committed Oct 12, 2015
  4. @nickmarden

    Merge pull request #356 from nickmarden/fix-pr347-specs

    Make fix for issue #347 specific only to block case /ht @paulczajka
    nickmarden committed Feb 22, 2016
  5. @jcoleman @nickmarden
  6. @nickmarden
Commits on Feb 13, 2016
  1. @sobrinho

    Merge pull request #349 from MishaConway/feature-support-plugging-in-…

    …custom-load-balancers
    
    add support for being able to plug in custom load balancer
    sobrinho committed Feb 13, 2016
Commits on Feb 1, 2016
  1. @MishaConway
Commits on Jan 30, 2016
  1. Updating Readme

    committed Jan 30, 2016
Commits on Jan 28, 2016
  1. @sobrinho

    Merge pull request #270 from odedniv/configure-master-shard

    allow setting master shard through ENV['SHARD'] or config/shards.yml
    sobrinho committed Jan 28, 2016
  2. @odedniv
  3. @odedniv
  4. @sobrinho

    Merge pull request #271 from odedniv/using-group

    add #using_group and #using_all ability
    sobrinho committed Jan 28, 2016
  5. @sobrinho

    Merge pull request #311 from mezis/fix/slave-groups-in-blocks

    Allows slave groups to be used in Octopus.using blocks
    sobrinho committed Jan 28, 2016
  6. @sobrinho

    No longer support ruby 1.9.3

    sobrinho committed Jan 28, 2016
  7. @sobrinho

    Merge pull request #321 from ronen/replace-alias-method-chain

    Replace Module#include & alias_method_chain with Module#prepend & super
    sobrinho committed Jan 28, 2016
  8. @sobrinho

    Merge pull request #337 from djudd/string-efficiency

    Avoid unnecessary string allocations
    sobrinho committed Jan 28, 2016
  9. @sobrinho

    Merge pull request #344 from Dinda-com-br/af-dc-fix-rails-project-check

    Fix Rails module check, to avoid issues with non rails projects
    sobrinho committed Jan 28, 2016
  10. @sobrinho

    Merge pull request #348 from biscar/master

    Issue  #347
    sobrinho committed Jan 28, 2016
Commits on Jan 26, 2016
  1. Added spec which covers the triggering of method_missing on Collectio…

    …nProxy objects.
    Vitali Stukov committed Jan 26, 2016
Commits on Jan 25, 2016
  1. Fix for 'method_missing' is triggered on 'ActiveRecord::Associations:…

    …:CollectionProxy' object and current shard is set in shard of owner.
    Vitali Stukov committed Jan 25, 2016
Commits on Dec 15, 2015
  1. Fix rails project check to avoid issues with rails-sanitizer-html dep…

    …endency of actionmailer
    Antonio Filho committed Dec 15, 2015
  2. Load railtie only if Rails::Railtie is defined

    Antonio Filho committed Dec 15, 2015
Commits on Oct 15, 2015
  1. @djudd

    Avoid unnecessary string allocations

    The memory_profiler gem indicates that these string allocations make up a significant
    proportion of our overall allocations on our production Rails app
    djudd committed Oct 15, 2015
Commits on Oct 9, 2015
  1. @sobrinho

    Raise an exception on Model.using because it's a mistake

    Since Model.using is a chain method, we must not allow it to receive a
    block.
    
    It was the cause of a issue and by adding the exception we found two
    spots on the suite with the same mistake.
    
    Fixes #276
    sobrinho committed Oct 9, 2015
  2. @sobrinho

    Fix group + count on all rails versions

    We should check the rails version before using only ivar association
    because it doesn't work on rails 3.2.
    
    This is related to b1e70ac and #322.
    sobrinho committed Oct 9, 2015
  3. @sobrinho

    Fix inherited connections from abstract classes

    https://coderwall.com/p/xhcmbg/cattr_accessor-vs-class_attribute
    
    We must use class_attribute instead of cattr_accessor because we don't
    want to mutate other classes.
    sobrinho committed Oct 9, 2015
  4. @sobrinho
Commits on Oct 4, 2015
  1. @sobrinho

    Merge pull request #329 from amatsuda/group_count_fix

    Fix stack level too deep on grouped calculation
    sobrinho committed Oct 4, 2015
Commits on Sep 9, 2015
  1. @amatsuda

    Depend on mysql2 0.3.x for now

    mysql2 0.4 is incompatible with activerecord < 5
    amatsuda committed Sep 9, 2015
  2. @amatsuda

    Fix stack level too deep on grouped Relation

    Calling `respond_to?` on an AR::Relation here would possibly invoke
    DB loading and eventually cause "stack level too deep" error when
    the Relation has group_values.
    
    fixes #322
    amatsuda committed Sep 9, 2015
Commits on Aug 9, 2015
  1. @sobrinho
  2. @sobrinho