On Nov 4, 2013, at 6:02 AM, Fahim Patel <pafa...@gmail.com> wrote: > 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.
How do you move a validation rule to memcache? > > Hope you understood situation .... > - show quoted text - > > On Nov 4, 2013, at 4:32 AM, Fahim Patel <paf...@gmail.com> wrote: > > > @sur and @tam thanks for reply.... > > > > @sur - Currently I am using rescue ....I am using worker's but still I am > > thinking to use memcache for fast performance....What you say can I achieve > > validation on cache level. > > > > @tam - I even showing processing image till process done.... > > > > Friends ....can i achieve fast performance through putting validation on > > cache level .....or I have to assume that this is max performance code…. > > Here’s what I don’t get: what could you possibly be caching here? If what’s > happening is a user is uploading a CSV file that is going to inserted into > table, what is going to be cached? > - show quoted text - > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/rubyonrails-talk/7902ebce-ee88-42f7-bd2c-cbe9b7374d18%40googlegroups.com. > > > - show quoted text - > > 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+unsubscr...@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/1eb12dbd-4a58-4de4-9d4d-83bf8c3c4f0d%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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+unsubscr...@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/25BC659D-075D-450D-BD41-BC481414A418%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.