search for: update_count

Displaying 6 results from an estimated 6 matches for "update_count".

Did you mean: update_counts
2006 Jan 13
1
Rendering an RJS template within another RJS template
...generated, but the partial isn''t rendered. I also tried using render :action => ''update_actions'' destroy.rjs--- page.visual_effect :fade, comment_container(@object.id.to_s) # update the number of comments(below is another rjs template) render :partial => ''update_counts'' -- Derek Haynes HighGroove Studios - http://www.highgroove.com Atlanta, GA | San Mateo, CA Keeping it Simple. 404.593.4879
2013 Jan 20
20
ActiveRecord::Persistence.increment! requires a row lock to ensure isolated updates
The method is here: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/persistence.rb#L288. The method takes the in-memory attribute value and increments it by the specified amount. A safer approach (from an isolation standpoint) would be to let the database determine the value. Instead of telling the database what value to persist in the database, the SQL can written
2011 Apr 20
4
files not moved immediately to final destination from temp location after rsync returns with success
...$CONFIG_TIMEOUT \ --contimeout $CONFIG_TIMEOUT \ $SRC $DEST 1>>$RSYNC_LOG 2>&1 if [ $? -eq 0 ]; then process_command_file <<<< if the file was pulled completely then pull the files mentioned in this file. [ $? -eq 0 ] && { update_counter; } <<<< update_counter increments the file name to the next file we should be looking for if all the data was all pulled correctly fi sleep $CONFIG_POLL_PERIOD <<<<< this was configured as 180 seconds. done function process_command_file { # extract...
2006 May 22
3
STI, HABTM & counter_cache
Hello world... I have an interesting issue that the online docs aren''t helping me with. In my app I have 4 models Item < ActiveRecord Deal < Item Product < Item Category < ActiveRecord Item has_and_belongs_to_many :categories... On each category record I''d like to maintain a product_count and deal_count to increase performance. This doesn''t appear
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...onnection_adapters/abstract/database_statements.rb:49:in `update_without_query_dirty'' ./test/../lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update'' ./test/../lib/active_record/base.rb:685:in `update_all'' ./test/../lib/active_record/base.rb:771:in `update_counters_without_lock'' ./test/../lib/active_record/locking/optimistic.rb:139:in `update_counters'' ./test/../lib/active_record/base.rb:790:in `increment_counter'' ./test/../lib/active_record/callbacks.rb:309:in `callback'' ./test/../lib/active_record/callbacks.rb:309:in `...
2009 May 09
41
updating the db 6000 times will take few minutes ?
i am writing a test program for ActiveRecord, and it reads a document which is like 6000 words long. And then i just tally up the words by recordWord = Word.find_by_s(word); if (recordWord.nil?) recordWord = Word.new recordWord.s = word end if recordWord.count.nil? recordWord.count = 1 else recordWord.count += 1 end recordWord.save and so this