Saturday, November 2, 2013

[Rails] Re: Can we keep validation in memcached ?

Thanks Peter to reply.
Actually my table consist more than 15 columns and each column have lots of validation like presence validation,format validation. 
Major issue is user will upload CSV file which can consist hundred's of rows.Through active record validating each row consuming lots of time.

That's why I am thinking to move validation rule to cache level. It will fast process.

Is this can be possible to validate data on cache level ?

On Sunday, November 3, 2013 1:46:20 AM UTC+5:30, Fahim Patel wrote:

Hi All ,

Can we validate request input data using memcache ? Actually I am facing scenario in which user uploading CSV file which can have hundreds of rows and to validate each row using ActiveRecord taking long time.

I have below question:-

1. So can we cache our validation rule in memcache ?
2. If it is possible to store validation rules in memcache but can I able to perform
validation check ?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/832456dc-5b43-49c1-b679-38ebedc766a6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate