Ruby on Rails - Database or excel

41 views
Skip to first unread message

Stephen Lane

unread,
Nov 23, 2013, 6:22:22 AM11/23/13
to rubyonra...@googlegroups.com
I am currently doing a project in Ruby on Rails and I have been presented with a dilemma.

The dilemma is that the users of my system will be uploading an excel spreadsheet. The issue is should I just read straight from this excel spreadsheet into my front-end or should I load this spreadsheet into my MySQL database and then to my front-end.

I have asked numerous people about this issue and have researched on-line to no avail.

Any help would be much appreciated.

Thanks

Stephen

Frederick Cheung

unread,
Nov 25, 2013, 3:18:21 AM11/25/13
to rubyonra...@googlegroups.com
On Saturday, November 23, 2013 11:22:22 AM UTC, Stephen Lane wrote:
> I am currently doing a project in Ruby on Rails and I have been presented with a dilemma.
>
>
> The dilemma is that the users of my system will be uploading an excel spreadsheet. The issue is should I just read straight from this excel spreadsheet into my front-end or should I load this spreadsheet into my MySQL database and then to my front-end.
>
>

What do you mean by reading into your frontend? It's not clear to me what the difference is between the two paths you are confronted with.

Fred.

Colin Law

unread,
Nov 25, 2013, 3:31:49 AM11/25/13
to rubyonra...@googlegroups.com
On 23 November 2013 11:22, Stephen Lane <stephe...@gmail.com> wrote:
> I am currently doing a project in Ruby on Rails and I have been presented
> with a dilemma.
>
> The dilemma is that the users of my system will be uploading an excel
> spreadsheet. The issue is should I just read straight from this excel
> spreadsheet into my front-end or should I load this spreadsheet into my
> MySQL database and then to my front-end.

Do you need to modify any of the data (or is it just to be displayed)?

Do you need to keep the data available in the long term?

Do you have to show multiple views of the data (so the spreadsheet
would have to be interrogated multiple times)?

Is this a system that will be modified and extended over time?

If the answer to any of those is yes then extract the data from the
spreadsheet into the database. If you are just providing a simple web
based view on data from the spreadsheet then you could just extract it
on the fly. I would advise using the database however. I think in
the long run it would be simpler and easier to maintain.

Colin

>
> I have asked numerous people about this issue and have researched on-line to
> no avail.
>
> Any help would be much appreciated.
>
> Thanks
>
> Stephen
>
> --
> 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/f350ec22-70e8-4e57-8adc-83b070291f94%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages