TechHui

Hawaiʻi's Technology Community

Leo D's Blog – September 2014 Archive (2)

Importing large data sets in Rails and Postgres

In one of my recent projects, I needed to import a lot of data from csv files into a database as persisted domain objects in a web application.  This file import functionality wasn't just for application bootstrapping or a one-time legacy data migration, but for a recurring task that allowed the web app to receive updates from a third party vendor.

The number of records in each file could reach into the millions, so I knew from the outset that the plain-vanilla method of creating…

Continue

Added by Leo D on September 16, 2014 at 3:00pm — No Comments

writing a json api service in Rails

In the past few years, I've written a few json API's in rails.  There are a few trends driving the popularity of API's, one being Service Oriented Architecture, and another being client side rendering.  

Service Oriented Architecture can apply to all services, not just browser accessible ones.  It consists of making services available via a standard like SOAP or JSON, to increase re-usability and modularity, SOAP and JSON being the two most popular SOA protocols.  SOAP is XML-based,…

Continue

Added by Leo D on September 5, 2014 at 5:00pm — No Comments

Sponsors

web design, web development, localization

© 2024   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service