bpot / data_fabric Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mperham/data_fabric
Sharding and replication support for ActiveRecord
Home Page: http://github.com/mperham/data_fabric
This project forked from mperham/data_fabric
Sharding and replication support for ActiveRecord
Home Page: http://github.com/mperham/data_fabric
I tried to use data_fabric with rails 3.1.1 but getting error as.... uninitialized constant DataFabric::ConnectionProxy::RAILS_ENV.
While the data_fabric development i.e. https://github.com/bpot/data_fabric.git. is working with rails 3.1.1. But It gives error while executing create statements from the migration file.
I've been using "version 1.4.0" for almost a year now and it would be nice to finally kill that last github URL in my Gemfile
.
Would it be possible to lock down a release and publish it to RubyGems?
I am using data_fabric from master branch for database replication and resque mailer for batch email processing. I found that data_fabric is causing below error to the resque-mailer. This error stops the processing of resque mailer and it usually occurs immediately after sending the first mail
PGError: ERROR: prepared statement "a3" already exists
: SELECT DISTINCT(attr.attname)
FROM pg_attribute attr
INNER JOIN pg_depend dep ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid
INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1]
WHERE cons.contype = 'p'
AND dep.refobjid = $1::regclass
Would you please help me out to resolve the above issue?
Note: The same type of issue I faced earlier and I resolved it using the code mentioned in below URL.
http://stackoverflow.com/questions/6137570/resque-enqueue-failing-on-second-run
I get 8 of these running the tests on a fresh clone on the rails32 branch:
1) Error:
test_enchilada(ConnectionTest):
NameError: uninitialized constant DataFabric::ConnectionProxy::Rails
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:157:in `connection_name_builder'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:99:in `connection_name'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:107:in `block in test_enchilada'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric.rb:62:in `activate_shard'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:106:in `test_enchilada'
If I require rails in test_helper.rb I get this failure:
1) Failure:
test_enchilada(ConnectionTest) [/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:110]:
[ActiveRecord::RecordNotFound] exception expected, not
Class: <NoMethodError>
Message: <"undefined method `accept' for nil:NilClass">
---Backtrace---
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:95:in `method_missing'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `block in find_by_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `block in to_a'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:336:in `find_one'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:312:in `find_with_ids'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:107:in `find'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:5:in `find'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:111:in `block (2 levels) in test_enchilada'
---------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.