Coder Social home page Coder Social logo

data-api's People

Contributors

danyx23 avatar larsyencken avatar marigold avatar wcox13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

data-api's Issues

data-api & catalog suggested improvements

Random ideas collected at our tech tea

API

Catalog

  • Grapher Preview for variables (using owid-grapher-py)
  • Last update of a dataset (+ recency filter)
  • temporal and spatial coverage would be awesome
  • Variable relationships & hierarchies
  • Autogenerate dataframe descriptive statistics with existing libraries
  • Open notebook with snippet (binder, jupyter in browser)
  • Non-grapher chart previews?

Search

  • Better full-text search
  • Use count of charts variable is used in to improve search

Version duck.db

You could always just make an integer version number and work with duckdb-<version>.db and then increment it each time the format changes. Then other users know they need to update.

Simple VERSION constant in crawl.py and in data-api could be enough to make this useful.

`Int64` is converted into `float64` when returned to user

Int64 type is stored in DuckDB as NULLABLE BIGINT. Calling fetch_df on it converts it to float64 (because it assumes there could be NaNs) which could be confusing for users (for instance weekly covid cases are such a case).

We could either keep it in arrow format, never call fetch_df and let users read it as feather file or convert float64 back to Int64 before returning it to user.

Replicate data to local DuckDB or fetch dynamically from S3?

Right now we replicate all data into local DuckDB. That has some advantages like query performance or no traffic between S3 and our server. On the other hand, some rare datasets like faostat or SDG are huge and replicating them takes a long time (though we might have to do it only once). I haven't synced all datasets yet, but I assume that our entire database would be ~10GB (there's a lot of space for optimisation though!) which isn't small.

A lot could be optimised, though I'm wondering from a philosophical perspective if we should invest time in it or consider fetching them directly from S3. Perhaps fetching them from S3/R2 is the future and we should go that way?

Might be worth checking how fast and feasible this is.

API is consuming ~4GB memory, why that much?

Since our analytics server is quite small, this could become an issue since ETL runs on the same server. There's no reason API should be using that much memory. How is that possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.