search for: some_count

Displaying 2 results from an estimated 2 matches for "some_count".

Did you mean: semi_count
2006 Jul 12
1
When to use Mutex::synchronize?
...o the synchronize method in the Mutex class. Now that backgroundrb has allow_concurrency = true there is no need to synchronize database calls in threads. The question I have is lets say I have a simple method in my worker as follows: def some_method SomeModel.find_all each do |obj| obj.some_count += 1 obj.save! end end It accesses the database, but is not in a thread. Since this is a single process running in the background, if that method gets called simultaneously will the database lose connection? Will I get unexpected results? For instance, if 500 people access www.somedomai...
2006 Feb 18
2
select widget in partial, can it use :index?
I know I can use :index => collection_counter with text_fields, but do they work with any version of select form helpers? Thanks! Ian