Re: [Rails] Dynamic Fields and Models Architecture

2016-01-26 Thread Usman Shahid
Thanks Matt. This looks very promising. On 26 January 2016 at 19:58, Matt Jones wrote: > The query interface you're describing sounds a lot like Elastic (formerly > Elasticsearch): https://www.elastic.co/products/elasticsearch > > --Matt Jones > > On Tuesday, 26 January 2016 02:19:23 UTC-6, Usma

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-26 Thread Matt Jones
The query interface you're describing sounds a lot like Elastic (formerly Elasticsearch): https://www.elastic.co/products/elasticsearch --Matt Jones On Tuesday, 26 January 2016 02:19:23 UTC-6, Usman Shahid wrote: > > Parsing isn't the issue. The problem is that I don't want to rewrite code > ev

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-26 Thread Usman Shahid
Parsing isn't the issue. The problem is that I don't want to rewrite code every time a new dataset is added. I want to provide an abstract interface as well under which I can plug any data-set. On 25 January 2016 at 06:43, Walter Lee Davis wrote: > I would just make an importer to put all the da

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-24 Thread Walter Lee Davis
I would just make an importer to put all the data in a normalized set of fields in a single table. Then you can have one set of fields and one model to wrap around them. Parsing Excel is pretty easy these days, because it's just XML. Walter > On Jan 22, 2016, at 9:06 AM, Usman Shahid wrote: >

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-24 Thread Usman Shahid
Can anyone offer a solution? Any kind of help will be appreciated. On 22 January 2016 at 19:06, Usman Shahid wrote: > Ok, i'll explain this with a hypothetical scenario. Suppose the > requirement is that we need to create a portal to provide stats of > different products available in the market.

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-22 Thread Usman Shahid
Ok, i'll explain this with a hypothetical scenario. Suppose the requirement is that we need to create a portal to provide stats of different products available in the market. And suppose you get data periodically from different places in spreadsheets.Each spreadsheet contains data for one kind of p

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-21 Thread Walter Lee Davis
> On Jan 21, 2016, at 2:25 PM, Usman Shahid wrote: > > It's not a performance issue. the problem is that i don't have one database, > but multiple databases added at run-time. Each database is independent and I > don't know what they look like however, i need to perform similar operation > on

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-21 Thread Usman Shahid
It's not a performance issue. the problem is that i don't have one database, but multiple databases added at run-time. Each database is independent and I don't know what they look like however, i need to perform similar operation on each of them like taking averages, min, max, count, selections and

Re: [Rails] Dynamic Fields and Models Architecture

2016-01-21 Thread Walter Lee Davis
> On Jan 20, 2016, at 2:04 PM, Usman Shahid wrote: > > Hi Everyone, > > I've to design a system in which different datasets are added periodically to > the system and user should be able to perform several predefined set of > operations on the data. Datasets are large enough so it makes sense

[Rails] Dynamic Fields and Models Architecture

2016-01-20 Thread Usman Shahid
Hi Everyone, I've to design a system in which different datasets are added periodically to the system and user should be able to perform several predefined set of operations on the data. Datasets are large enough so it makes sense to keep them in separate tables/databases for performance reason