rapidsai / rapidsai/node

Write endpoint that returns only n points.

Open
#446 2 comments 0 reactions 1 assignee View on GitHub

@thomcom is already working on this.

Since Nov 21, 2022.

Dominant language
TypeScript
Stars
211
Forks
29
Avg merge
17h 30m
Merged PRs (30d)
1

Description

To time the speed of the interface and to build the first step of building a point-budget based demo, I need an endpoint that only returns n points.

My first impulse is to create a fastify plugin that modifies the API and allows for endpoints and bounds to be specified. I'm not sure that a fastify plugin can change the endpoint schema, however.

Since only particles/:table will depend on this, it is surely faster just to modify its schema and handler to this purpose. I'll write this endpoint in a test-driven fashion, starting with the test then adding to the endpoint.

  • Viz with 'max zoom out view' (e.g. all data 'visible')

  • We have a set 'maximum # of points able to render' (this is usually lower than full dataset)

  • Currently writing this request, for the server to return a fixed number of points.

  • How do we decide and keep track of what points to show from the full dataset?

  • I originally planned on having the client do all of the point specifications, but it would be interesting to use the server for tracking what points have been displayed. It would be trivial to add metadata columns to the DataFrame about which points have been displayed, their time of display, and which request gathered them.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.