similar to: Need help cutting down on db traffic

Displaying 20 results from an estimated 7000 matches similar to: "Need help cutting down on db traffic"

2011 Feb 15
1
samba authenticates only against the primary group of a user?
Hello everyone! I seem to be have a bit of a problem setting up a few network folders for a my office on a Qnap storage device running Samba -v3.5.2. So I ask: when the 'write list' of a share contains ONLY groups, and a user tries to log on to that share, then samba authenticates against the primary group only of that user only?? Here is the example that fails: -the user is
2013 Mar 04
4
sieve-filter ignoring separator
It seems like running sieve-filter from the console ignores the separator setting, thus not letting me filter into folder names containing dots. Normal delivery using lda handles it just fine, but not when using the sieve-filter command. Character not allowed in mailbox name: '.' Is there anyway to override this or is patching and recompiling the source my only option? # dovecot
2006 Nov 10
2
Testing with foreign keys
I''m looking for a plugin/whatever for preloading fixtures, to run tests with FKs defined. Specifying load order just doesn''t work for me, I need to purge the test db, load all fixtures, and only then create the FK constraints. Any suggestions? Isak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2008 Jan 23
1
cgi escaped basic auth data in ActiveResource?
ActiveResource basic auth currently breaks when certain chars are used in the user name and/or password field, e.g. ''@'' as part of the user name. I created a ticket on the issue[1], but closed it again as I''m not sure where the responsibility really belongs. It''s a showstopper for us, though.. Thoughts? [1] <http://dev.rubyonrails.org/ticket/10902>
2006 May 19
7
AR transactions and isolation levels
I''m trying to create a sequence with no gaps in my db (contrived example, but should work out the same as my real one), and believe db-managed transactions are the way to go about this. It''s my first real ''go'' at transactions, so I may be mistaken about how things really work. Anyway.. Consider this example code: Class Invoice < ActiveRecord::Base def
2011 Dec 06
3
Riak on Camping
Good day, does anyone here have a clue on how to make use of the NoSQL database "Riak" with Camping? I am building my website and Riak seems like pretty much the ultimate database! This would probably ruin every little feature in ActiveRecord, I don''t think I''d be able to do any has_many''s or belongs_to but I''d LOVE to be proven wrong. As far as
2006 May 16
2
Model layer access control
I already have a simple role based access control system (User, Role, Privilege, Client) in place for my web layer, which checks User.authorized?(controller, action, client) from a before filter. What do you think about using this method for auth checks on the model layer as well, only with made up controller/action strings? (e.g. "model::Period", "close") A bit simplistic
2006 Sep 21
10
Can I use 2 DB connections in my app?
Hi there! How can i use 2 database connections in my rails application ( if it''s possible of course ): one for reading from DB and one for writing to DB? Thanks, Dmitry -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2009 Feb 20
1
how can I disable the rails logging in development?
I can''t seem to disable rails logging when using Mongrel. Any fix for this? Also unanswered on the Rails forum: http://www.ruby-forum.com/topic/109422#784596 Re: how can I disable the SQL logging which occurs in develo Posted by Greg Hauptmann (Guest) on 29.05.2007 21:22 You''re exactly correct Isak! Thanks. The logging functionality worked as it should in webrick. Is seems
2006 Jul 01
6
Sorting by an attribute on a associated table
So, I have a User has_many :profiles. The most recently dated profile is considered the current one. I need to sort these users by name, but the name attribute is a member of the associated table. Is there any easy way to do this other than with some ugly find_by_sql? Maybe a more general question - is there a common solution to sorting in Ruby? -- Posted via http://www.ruby-forum.com/.
2006 May 12
4
default value in text field
hi, This should be really simple, but i cant seem to find the answer anywhere!! In my _form.rhtml I have the following text field, how can I define a default value? <%= text_field ''purchaseorder'', ''number'' %> -- Posted via http://www.ruby-forum.com/.
2007 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many instances of in parallel. Couldn''t get pool_size to limit the amount of workers, and I figure that''s hardly optimal anyway, so would like to have the work queued up for a single named worker instead, running as soon as possible. Using MiddleMan.schedule_worker() with :job_key does start off a
2006 Nov 04
3
role based authorization question
I am using the the authorization recipe outlined in Rails Recipes.Is it possible for one role, say ''admin'', to have access to every action on every controller without explicitly having to create a Right for each? I know this will not work as is, and to force it to do so would violate MVC, but is there some other way to accomplish having something like this in a controller:
2006 Jun 09
12
Securing database from your provider?
Hi. If i had a RoR application dealing with very reserved personal informations about my customers, if my hosting provider would like to, i guess it would be easy for him to steal the data by simply peeking the username and password inside the database.yml file. Is there a way to hide the database password from indiscrete eyes ? Thanks, Marcus Ob. -- Posted via http://www.ruby-forum.com/.
2006 May 10
12
how best to implement lookup table?
Hi all - I''d like to implement a lookup table in my app that contains some reference data, just some status codes and their descriptions. What''s the most appropriate approach according to the "rails way" of doing things? Would I just implement a has_many relationship? Let''s say these are Order status codes, would the StatusCode have many Orders? This
2006 Jun 12
5
Method in Model
I have a simple method in a model, to send out e-mails via the script/runner. def Reminder.dropoff @messages = Reminder.find(:all, :conditions => [ "time < now()"]) @messages.each do |mes| Mailman::deliver_send_message(mes) end end However, it''s not sending e-mails. When this exact code was dropped in a controller, it worked great... is there
2007 Jan 26
7
How to protect attributes from being updated?
Hi! I''m new to Rails! Rails rox! 1 quesion so far: I have :email attribute in User model. I dont'' want :email to allow to be updated. How do i do this with Rails? Do I have to implement required validation manually? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jun 13
4
When saving parent fails, children will still be updated
Hi all, When submitting a master/detail form I first want to handle the children before saving the parent. There are has_many and belongs_to relations between the parent and the children, so I can edit the children using (psuedo-)code like: child.destroy for deleting, child.update_attributes for updating and @parent.children.push(child) for adding child-records. I update the parent by using:
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of my class "entity". Entity is ActiveRecord. I''m able to retrieve all sorts of data from an @entity, until I do something like: <% for @attribute in @entity.attributes %> <div id="attribute_<%= @attribute.id %>"> <%= render(:partial =>
2006 May 02
9
Visual Migration Design Tool
For a really long time, I''ve been using DBDesigner from FabForce.net. For those of your who''ve never used it, its a freeware visual entity-relationship diagram tool, which allows you to make database designs visually instead of in SQL DDL. You can then use it to generate the SQL to make your databse design into reality, or even run a "synchronize" to make any