On Tue, Nov 5, 2013 at 12:42 AM, Sur wrote:
> well it'd be interesting to know why you're frustrated out of Symbol
> concepts of Ruby ?
It's hard to explain, fight the good fight long enough you might see
it or you might not, I won't force my views on you.
> I didn't say symbols are better than
> 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 bette
@sur - will check as you said.
@jordan - not understood your reply..
--
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...@googleg
On Tue, Nov 5, 2013 at 12:07 AM, Sur wrote:
> Do you know what is the difference between a string and a symbol and why and
> where symbols are preferred over strings ?
>
> try this:
>
> a = "some string"
> b = "some string"
> b.object_id == a.object_id (watch for the result of this expression)
>
Well, this is a classic use case when we jump too early on Rails not
understanding the Ruby (or programming in general) to at least a decent
level let alone the meta-programming stuff.
One should get a good hold of Ruby at least to a level where s/he
understands how the memory mapping is worki
First validate the data, and then insert it to the database. Till then, it’s
read from the file and still in-memory.
I’m not bringing the cache into the picture at all.
--
Dheeraj Kumar
On Tuesday, 5 November 2013 at 11:24 am, Fahim Patel wrote:
> @dheeraj - thanks for reply.I am using r
@dheeraj - thanks for reply.I am using resque & redis. You exactly got use
case .
can you please give answer for below point:-
1. From rails app, when user insert data then each time data hitted on
database for validation or validation is present in cache ?
--
You received this message becaus
This is a great use case for a background job. Have you tried Resque?
If I have a user uploading thousands of rows, all of which need to be validated
and processed/saved, I’d do it like this:
Let the user upload the file, save it somewhere. Trigger a Resque job.
Read the file one or more rows at
@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.
Friends and @sur please clear me on below question-
>From rails app, when user i
Thanks @sur for reply.
Yes you understood correctly my issue, and I even understood your
solution
let me cross check your solution and will update here.
If I understood you correctly,
Validation rule resides inside a Ruby class i.e. a class inheriting
ActiveRecord::Base, which is alrea
> 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 l
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
On Nov 4, 2013, at 4:32 AM, Fahim Patel 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 performanceWhat you say can I achieve
> validation on cache level.
>
> @tam - I even show
@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 performanceWhat you say can I achieve
validation on cache level.
@tam - I even showing processing image till process done
Friends can i ac
On Nov 4, 2013, at 2:42 AM, Sur Max 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 th
@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 me
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
> sce
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.
18 matches
Mail list logo