UTDNebula / nebula-api

The central API for Nebula Labs. Makes UTD data easily available through endpoints for both internal and public usage.
MIT License
26 stars 33 forks source link

Change autocomplete endpoint to pull from "DAG" database view #225

Closed jpahm closed 1 month ago

jpahm commented 1 month ago

Currently the autocomplete endpoint performs an aggregation within the controller itself, putting together a new aggregation pipeline for each request. As this is relatively inefficient and messy, the aggregation pipeline for this has instead been added to the database itself as a view called DAG.

The controller should be modified to pull results from this view instead of generating the pipeline itself.

mohammadmehrab commented 1 month ago

Can I be assigned this?

jpahm commented 1 month ago

Sure thing!

jpahm commented 1 month ago

Closed via #233