├── .coveralls.yml ├── .document ├── .gitignore ├── .gitmodules ├── .rspec ├── .rubocop.yml ├── .rubocop_todo.yml ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── Guardfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── activerecord-turntable.gemspec ├── gemfiles ├── rails5_0_0.gemfile ├── rails5_0_1.gemfile ├── rails5_0_2.gemfile ├── rails5_0_3.gemfile ├── rails5_0_4.gemfile ├── rails5_0_5.gemfile ├── rails5_0_6.gemfile ├── rails5_0_7.gemfile ├── rails5_1_0.gemfile ├── rails5_1_1.gemfile ├── rails5_1_2.gemfile ├── rails5_1_3.gemfile ├── rails5_1_4.gemfile ├── rails5_1_5.gemfile ├── rails5_1_6.gemfile ├── rails5_2_0.gemfile ├── rails5_2_1.gemfile ├── rails6_0_0.gemfile └── rails_edge.gemfile ├── lib ├── active_record │ ├── turntable.rb │ └── turntable │ │ ├── active_record_ext.rb │ │ ├── active_record_ext │ │ ├── .gitkeep │ │ ├── abstract_adapter.rb │ │ ├── activerecord_import_ext.rb │ │ ├── acts_as_archive_extension.rb │ │ ├── association.rb │ │ ├── association_preloader.rb │ │ ├── clever_load.rb │ │ ├── connection_handler_extension.rb │ │ ├── database_tasks.rb │ │ ├── fixtures.rb │ │ ├── locking_optimistic.rb │ │ ├── log_subscriber.rb │ │ ├── migration_proxy.rb │ │ ├── persistence.rb │ │ ├── query_cache.rb │ │ ├── relation.rb │ │ ├── schema_dumper.rb │ │ ├── sequencer.rb │ │ └── transactions.rb │ │ ├── algorithm.rb │ │ ├── algorithm │ │ ├── .gitkeep │ │ ├── base.rb │ │ ├── hash_slot_algorithm.rb │ │ ├── modulo_algorithm.rb │ │ ├── range_algorithm.rb │ │ └── range_bsearch_algorithm.rb │ │ ├── base.rb │ │ ├── cluster.rb │ │ ├── cluster_helper_methods.rb │ │ ├── cluster_registry.rb │ │ ├── compatibility.rb │ │ ├── configuration.rb │ │ ├── configuration │ │ ├── dsl.rb │ │ ├── loader.rb │ │ └── loader │ │ │ ├── dsl.rb │ │ │ └── yaml.rb │ │ ├── configuration_methods.rb │ │ ├── connection_proxy.rb │ │ ├── connection_proxy │ │ └── mixable.rb │ │ ├── default_shard.rb │ │ ├── deprecation.rb │ │ ├── error.rb │ │ ├── migration.rb │ │ ├── mixer.rb │ │ ├── mixer │ │ ├── fader.rb │ │ └── fader │ │ │ ├── calculate_shards_sum_result.rb │ │ │ ├── insert_shards_merge_result.rb │ │ │ ├── select_shards_merge_result.rb │ │ │ ├── specified_shard.rb │ │ │ └── update_shards_merge_result.rb │ │ ├── plugin.rb │ │ ├── pool_proxy.rb │ │ ├── railtie.rb │ │ ├── railties │ │ └── databases.rake │ │ ├── seq_shard.rb │ │ ├── sequencer.rb │ │ ├── sequencer │ │ ├── api.rb │ │ ├── barrage.rb │ │ ├── katsubushi.rb │ │ └── mysql.rb │ │ ├── sequencer_registry.rb │ │ ├── shard.rb │ │ ├── shard_registry.rb │ │ ├── sharding_condition.rb │ │ ├── slave_registry.rb │ │ ├── slave_shard.rb │ │ ├── sql_tree_patch.rb │ │ ├── util.rb │ │ └── version.rb ├── activerecord-turntable.rb └── generators │ ├── active_record │ └── turntable │ │ └── install_generator.rb │ └── templates │ ├── turntable.rb │ └── turntable.yml ├── script └── performance │ └── algorithm └── spec ├── active_record ├── finder_methods_spec.rb └── turntable │ ├── active_record_ext │ ├── activerecord_import_ext_spec.rb │ ├── association_preloader_spec.rb │ ├── association_spec.rb │ ├── clever_load_spec.rb │ ├── connection_handler_extension_spec.rb │ ├── fixture_set_spec.rb │ ├── locking_optimistic_spec.rb │ ├── log_subscriber_spec.rb │ ├── persistence_spec.rb │ ├── query_cache_spec.rb │ ├── schema_dumper_spec.rb │ ├── sequencer_spec.rb │ └── test_fixtures_spec.rb │ ├── algorithm │ ├── hash_slot_algorithm_spec.rb │ ├── modulo_algorithm_spec.rb │ └── range_bsearch_algorithm_spec.rb │ ├── algorithm_spec.rb │ ├── base_spec.rb │ ├── cluster_helper_methods_spec.rb │ ├── cluster_spec.rb │ ├── configuration │ └── loader │ │ └── yaml_spec.rb │ ├── configuration_methods_spec.rb │ ├── configuration_spec.rb │ ├── connection_proxy_spec.rb │ ├── migration_spec.rb │ ├── mixer │ └── fader_spec.rb │ ├── mixer_spec.rb │ ├── pool_proxy_spec.rb │ ├── sequencer │ ├── api_spec.rb │ ├── barrage_spec.rb │ ├── katsubushi_spec.rb │ └── mysql_spec.rb │ ├── shard_registry_spec.rb │ ├── shard_spec.rb │ └── sql_tree_patch_spec.rb ├── activerecord_helper.rb ├── config ├── activerecord_config.yml ├── database.yml ├── turntable.rb └── turntable.yml ├── factories ├── items.rb ├── user_event_histories.rb ├── user_item_histories.rb ├── user_items.rb ├── user_profiles.rb └── users.rb ├── fixtures └── items.yml ├── migrations ├── .gitkeep └── schema.rb ├── models ├── item.rb ├── special_user_event_history.rb ├── user.rb ├── user_event_history.rb ├── user_item.rb ├── user_item_history.rb ├── user_profile.rb └── user_with_callbacks.rb ├── spec_helper.rb └── support ├── matchers ├── be_saved_to.rb └── query_like.rb └── turntable_helper.rb /.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: cMnRYFmLywEZ2v7qZYW3l9b3iMjK5Mm3h 2 | -------------------------------------------------------------------------------- /.document: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/.document -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/.gitmodules -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format=documentation 3 | 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.rubocop_todo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/.rubocop_todo.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/Gemfile -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/Guardfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/Rakefile -------------------------------------------------------------------------------- /activerecord-turntable.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/activerecord-turntable.gemspec -------------------------------------------------------------------------------- /gemfiles/rails5_0_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_0.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_1.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_2.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_3.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_3.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_4.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_5.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_5.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_6.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_6.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_0_7.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_0_7.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_0.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_1.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_2.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_3.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_3.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_4.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_5.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_5.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_1_6.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_1_6.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_2_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_2_0.gemfile -------------------------------------------------------------------------------- /gemfiles/rails5_2_1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails5_2_1.gemfile -------------------------------------------------------------------------------- /gemfiles/rails6_0_0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails6_0_0.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_edge.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/gemfiles/rails_edge.gemfile -------------------------------------------------------------------------------- /lib/active_record/turntable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/abstract_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/abstract_adapter.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/activerecord_import_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/activerecord_import_ext.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/acts_as_archive_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/acts_as_archive_extension.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/association.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/association.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/association_preloader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/association_preloader.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/clever_load.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/clever_load.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/connection_handler_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/connection_handler_extension.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/database_tasks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/database_tasks.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/fixtures.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/fixtures.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/locking_optimistic.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/locking_optimistic.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/log_subscriber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/log_subscriber.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/migration_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/migration_proxy.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/persistence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/persistence.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/query_cache.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/query_cache.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/relation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/relation.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/schema_dumper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/schema_dumper.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/sequencer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/sequencer.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/active_record_ext/transactions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/active_record_ext/transactions.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/algorithm.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/algorithm/base.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm/hash_slot_algorithm.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/algorithm/hash_slot_algorithm.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm/modulo_algorithm.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/algorithm/modulo_algorithm.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm/range_algorithm.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/algorithm/range_algorithm.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/algorithm/range_bsearch_algorithm.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/algorithm/range_bsearch_algorithm.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/base.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/cluster.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/cluster.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/cluster_helper_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/cluster_helper_methods.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/cluster_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/cluster_registry.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/compatibility.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/compatibility.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/configuration.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/configuration/dsl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/configuration/dsl.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/configuration/loader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/configuration/loader.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/configuration/loader/dsl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/configuration/loader/dsl.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/configuration/loader/yaml.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/configuration/loader/yaml.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/configuration_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/configuration_methods.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/connection_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/connection_proxy.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/connection_proxy/mixable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/connection_proxy/mixable.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/default_shard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/default_shard.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/deprecation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/deprecation.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/error.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/migration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/migration.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer/fader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer/fader.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer/fader/calculate_shards_sum_result.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer/fader/calculate_shards_sum_result.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer/fader/insert_shards_merge_result.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer/fader/insert_shards_merge_result.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer/fader/select_shards_merge_result.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer/fader/select_shards_merge_result.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer/fader/specified_shard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer/fader/specified_shard.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/mixer/fader/update_shards_merge_result.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/mixer/fader/update_shards_merge_result.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/plugin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/plugin.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/pool_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/pool_proxy.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/railtie.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/railties/databases.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/railties/databases.rake -------------------------------------------------------------------------------- /lib/active_record/turntable/seq_shard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/seq_shard.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sequencer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sequencer.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sequencer/api.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sequencer/api.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sequencer/barrage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sequencer/barrage.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sequencer/katsubushi.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sequencer/katsubushi.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sequencer/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sequencer/mysql.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sequencer_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sequencer_registry.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/shard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/shard.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/shard_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/shard_registry.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sharding_condition.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sharding_condition.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/slave_registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/slave_registry.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/slave_shard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/slave_shard.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/sql_tree_patch.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/sql_tree_patch.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/util.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/util.rb -------------------------------------------------------------------------------- /lib/active_record/turntable/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/active_record/turntable/version.rb -------------------------------------------------------------------------------- /lib/activerecord-turntable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/activerecord-turntable.rb -------------------------------------------------------------------------------- /lib/generators/active_record/turntable/install_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/generators/active_record/turntable/install_generator.rb -------------------------------------------------------------------------------- /lib/generators/templates/turntable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/generators/templates/turntable.rb -------------------------------------------------------------------------------- /lib/generators/templates/turntable.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/lib/generators/templates/turntable.yml -------------------------------------------------------------------------------- /script/performance/algorithm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/script/performance/algorithm -------------------------------------------------------------------------------- /spec/active_record/finder_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/finder_methods_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/activerecord_import_ext_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/activerecord_import_ext_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/association_preloader_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/association_preloader_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/association_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/association_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/clever_load_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/clever_load_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/connection_handler_extension_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/connection_handler_extension_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/fixture_set_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/fixture_set_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/locking_optimistic_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/locking_optimistic_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/log_subscriber_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/log_subscriber_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/persistence_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/persistence_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/query_cache_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/query_cache_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/schema_dumper_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/schema_dumper_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/sequencer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/sequencer_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/active_record_ext/test_fixtures_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/active_record_ext/test_fixtures_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/algorithm/hash_slot_algorithm_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/algorithm/hash_slot_algorithm_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/algorithm/modulo_algorithm_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/algorithm/modulo_algorithm_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/algorithm/range_bsearch_algorithm_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/algorithm/range_bsearch_algorithm_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/algorithm_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/algorithm_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/base_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/base_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/cluster_helper_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/cluster_helper_methods_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/cluster_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/cluster_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/configuration/loader/yaml_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/configuration/loader/yaml_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/configuration_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/configuration_methods_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/configuration_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/connection_proxy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/connection_proxy_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/migration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/migration_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/mixer/fader_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/mixer/fader_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/mixer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/mixer_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/pool_proxy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/pool_proxy_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/sequencer/api_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/sequencer/api_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/sequencer/barrage_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/sequencer/barrage_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/sequencer/katsubushi_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/sequencer/katsubushi_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/sequencer/mysql_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/sequencer/mysql_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/shard_registry_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/shard_registry_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/shard_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/shard_spec.rb -------------------------------------------------------------------------------- /spec/active_record/turntable/sql_tree_patch_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/active_record/turntable/sql_tree_patch_spec.rb -------------------------------------------------------------------------------- /spec/activerecord_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/activerecord_helper.rb -------------------------------------------------------------------------------- /spec/config/activerecord_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/config/activerecord_config.yml -------------------------------------------------------------------------------- /spec/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/config/database.yml -------------------------------------------------------------------------------- /spec/config/turntable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/config/turntable.rb -------------------------------------------------------------------------------- /spec/config/turntable.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/config/turntable.yml -------------------------------------------------------------------------------- /spec/factories/items.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/factories/items.rb -------------------------------------------------------------------------------- /spec/factories/user_event_histories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/factories/user_event_histories.rb -------------------------------------------------------------------------------- /spec/factories/user_item_histories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/factories/user_item_histories.rb -------------------------------------------------------------------------------- /spec/factories/user_items.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/factories/user_items.rb -------------------------------------------------------------------------------- /spec/factories/user_profiles.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/factories/user_profiles.rb -------------------------------------------------------------------------------- /spec/factories/users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/factories/users.rb -------------------------------------------------------------------------------- /spec/fixtures/items.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/fixtures/items.yml -------------------------------------------------------------------------------- /spec/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/migrations/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/migrations/schema.rb -------------------------------------------------------------------------------- /spec/models/item.rb: -------------------------------------------------------------------------------- 1 | class Item < ActiveRecord::Base 2 | belongs_to :user_items 3 | end 4 | -------------------------------------------------------------------------------- /spec/models/special_user_event_history.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/special_user_event_history.rb -------------------------------------------------------------------------------- /spec/models/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/user.rb -------------------------------------------------------------------------------- /spec/models/user_event_history.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/user_event_history.rb -------------------------------------------------------------------------------- /spec/models/user_item.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/user_item.rb -------------------------------------------------------------------------------- /spec/models/user_item_history.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/user_item_history.rb -------------------------------------------------------------------------------- /spec/models/user_profile.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/user_profile.rb -------------------------------------------------------------------------------- /spec/models/user_with_callbacks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/models/user_with_callbacks.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/matchers/be_saved_to.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/support/matchers/be_saved_to.rb -------------------------------------------------------------------------------- /spec/support/matchers/query_like.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/support/matchers/query_like.rb -------------------------------------------------------------------------------- /spec/support/turntable_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drecom/activerecord-turntable/HEAD/spec/support/turntable_helper.rb --------------------------------------------------------------------------------