Displaying 20 results from an estimated 10000 matches similar to: "When will rails support true prepared statements?"
2006 Jul 20
4
SVN rails problem
My rails project is at version 52. I want to revert the whole app to
version 50, effectively ignoring v 51+52
I ran
"svn update -r 50" in my working copy. Success.
I have done some work on version 50, but when i try commiting it tells
me that the file im commiting is out of date.
DOes anyone know the solution?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2012 Sep 11
3
question about how to set up an active record adapter to prefer use of prepared statements...
Hi,
I am writing an active record adapter for our new database and when I run
the tests I see lots of statements that could be run as prepared
statements, but instead of passing me bindings AR passes me a fully
specialized SQL string, not in all cases, but in many. Here is an example:
SELECT addrs.* FROM addrs WHERE addrs.user_id = 153 FETCH FIRST 1 ROWS ONLY
I do have this hook set up:
2011 Sep 13
4
Prepared statements and postgreSQL schemas
Hi guys.
I''m using a postgreSQL with multiple schemas. To change between schemas I
use the ''SET schema TO ...'' statement. That works ok in rails 3.0.
Rails 3.1 uses prepared statements and does not take into account the
''schema_search_path''. This is a big problem because the statement is
prepared once and then the same prepared statement is executed
2006 Jul 21
20
Struts vs RoR
hi,
I recently attended one of the ruby meetings that we have in my city.
There one of the speaker said that google,amazon .. are working on RoR
but still the performance of RoR is not at par with J2EE others....
he meant that though google,amazon working o it they will not bring it as
front applications only parts
the reason ruby is slow in comparison to other languages....
and in real time
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:
2005 Oct 14
10
Active Record: Prepared Statements?
Hello all,
my first project is on it''s way, and I am loving it!
But, and that''s a big BUT:
Active Record does not use prepared statements! How is that? Everybody is
bragging about performance and the most obvious tuning measure is missing.
Ok, I don''t know, if MySQL can even do them as I am using Postgres, but
still.
I started looking at the code and it is not
2012 Jun 12
1
[0x721427d8@gmail.com: [php<=5.4.3] Parsing Bug in PHP PDO prepared statements may lead to access violation]
FYI
I verified this on a working system.
----- Forwarded message from 0x721427D8 0x721427D8 <0x721427d8@gmail.com> -----
Date: Sun, 10 Jun 2012 15:02:43 +0200
From: 0x721427D8 0x721427D8 <0x721427d8@gmail.com>
To: bugtraq@securityfocus.com
Subject: [php<=5.4.3] Parsing Bug in PHP PDO prepared statements may lead to
access violation
[php<=5.4.3] Parsing Bug in PHP PDO
2006 Aug 09
4
Do i need multiple mongrel instances for good performance?
I have developed a rails application for my company.
It will be used by upto 3o people at a time. I have just read that
Mongrel will only process 1 request at a time (rails is only in 1
controller at a time). Does this mean that to get good performance i
need to run mongrel many times on different ports?
How many different instances of mongrel is recommended?
If this is true then it
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
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
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
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
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
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 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
2006 Mar 23
8
ActiveRecord & Prepared Statement
I searched the archives and found a thread about it, but I didn''t
understand: are prepared statement used by ActiveRecord on those
databases that could handle them (Postgresql, Mysql, Oracle etc)?
In case they are not used, are they planned? Is there a roadmap about
Rails I can find somewhere?
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 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
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>