r/datascience•
mc110

How do you access data for use in data science processing?

Discussion

Data scientists at my workplace typically push Python/R code down into the database platform by embedding it within SQL to do their work. This is true whether the data was originally in the database, or is in e.g. S3 storage and accessed by defining an external table. A recent blog post gives an example with sentiment analysis at scale for 160 million Amazon Customer Reviews.

However, on this community I see a lot of posts and comments adopting an approach of pulling data from a database, then processing on either a laptop or some other platform (typically less powerful than the database platform), and optionally pushing results back to the database when appropriate.

It seems this approach has a number of problems:

  1. Pulling the data back to the client adds latency to the process.
  2. Doing processing outside the database is likely to be slower, assuming the processing power and other resources used compare unfavorably to the database platform.
  3. Pushing any results back to the database adds more latency again.

Point (2) above also tends to make people work with small extracts of data, due to limits of the platform they use for processing, so this approach can also prevent working with some data sets as they are simply too large.

What approach do you take?

If it is the pull+process[+push] approach, why do you work like that?

Do you see value in being able to work in a different way, but just cannot persuade others within your organisation of this?

Posted Jun 24, 2019, 8:21 PM UTC

415
Loading comments…