On Nov 4, 2013, at 4:32 AM, Fahim Patel <pafa...@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?

> On Nov 4, 2013, at 2:42 AM, Sur Max <sur...@gmail.com> wrote: 
> 
> > @Fahim 
> > 
> > In my opinion memcached is not a suitable tool for the purpose you've 
> > mentioned. In fact it'd be waste of resources in such a case. 
> > I would go for processing that thing in background using any of the 
> > available gem for processing the background job. 
> > Showing an interim screen to the user mentioning that your uploaded file is 
> > being processed and process it in background with the help of ActiveRecord 
> > + DelayedJob. 
> > 
> 
> I tend to agree. ActiveRecord does not do well for mass insert/updates, and 
> better to offload this task and not keep the Rails stack busy with it. 
> 
> I also wouldn’t hold up the user with a wait screen. I’d put a little 
> indicator in an area that shows the processing is being done but does not 
> restrict further use of the site, except for that new data. When the 
> background processing is finished, the indicator can be removed. 
> 
> > 
> > On Monday, 4 November 2013 00:26:08 UTC+5:30, Fahim Patel wrote: 
> > Thanks for reply. 
> > @josh - So you are saying that we can validate request on memcache level 
> > also. Please correct me If I am wrong ? 
> > 
> > 
> > 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-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/70f5120b-b8f2-4726-8467-586edaf2873f%40googlegroups.com.
> 
> 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/7902ebce-ee88-42f7-bd2c-cbe9b7374d18%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/C9BBC48D-7B51-424E-BD6A-6AE5F16954F2%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to