This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PURE DM | |
start=Time.now; puts Branch.get(3).centers(:fields => [:id]).clients(:fields => [:id]).loans(:fields => [:id, :amount]).sum(:amount); puts Time.now-start | |
~ (0.000063) SET sql_auto_is_null = 0 | |
~ (0.000048) SET SESSION sql_mode = 'ANSI,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL' | |
~ (0.000140) SELECT `id`, `name`, `code`, `created_at`, `creation_date`, `area_id`, `manager_staff_id` FROM `branches` WHERE `id` = 3 ORDER BY `id` LIMIT 1 | |
~ (0.000058) SELECT `id` FROM `centers` WHERE `branch_id` = 3 ORDER BY `id` | |
~ (0.000106) SELECT `id`, `center_id` FROM `clients` WHERE `deleted_at` IS NULL AND `center_id` IN (5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merb : worker (port 4000) ~ undefined method `get' for nil:NilClass - (NoMethodError) | |
/usr/lib/ruby/gems/1.8/gems/dm-core-0.10.1/lib/dm-core/associations/relationship.rb:510:in `regions' | |
/home/piyush/Code/Intellecap/mostfit/app/controllers/staff_members.rb:114:in `show' | |
/usr/lib/ruby/gems/1.8/gems/merb-action-args-1.0.13/lib/merb-action-args/abstract_controller.rb:42:in `__send__' | |
/usr/lib/ruby/gems/1.8/gems/merb-action-args-1.0.13/lib/merb-action-args/abstract_controller.rb:42:in `_call_action' | |
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.13/lib/merb-core/controller/abstract_controller.rb:289:in `_dispatch' | |
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.13/lib/merb-core/controller/merb_controller.rb:252:in `_dispatch' | |
/usr/lib/ |
NewerOlder