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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/10f8edbc-b78c-4cbe-9712-62e57b7105e9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/-h-dG0UWT5o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALxYQy4x4-5JGcT6bLdq8w13BuJgo-9Vf225JEdnEiGKKUPReg%40mail.gmail.com.
Thanks @tamouse for 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.
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/884cb08e-d516-4144-90de-701fbabd2497%40googlegroups.com.
--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/213e0dea-5492-4476-8695-5fe284825d94%40googlegroups.com.
@tam - I am even not sure how can experiment it. Collecting data and studying in progress.@sur - I am still cross checking.. If you provide any reference link or data to proof that validation already get cached.
Preach on about this bullshit when Ruby isn't primarily used for web
applications and when Ruby allows my system to reclaim memory, until
then lets leave the symbol argument bullshit out of this. Even if
they are constants they can lead to trouble if you just blindly state
they are better without explaining the dangers in a web application,
or people will repeat history, history people like me thought was
already common knowledge.