hilites-today / hilites.today

A issue tracker for https://hilites.today
0 stars 1 forks source link

New parameters filters for Query View #14

Closed bertolini10 closed 1 year ago

bertolini10 commented 2 years ago

Hi @jinshen1983.

I suggest putting new parameters in the query view (https://hilites.today/uscis_cases/search) and (https://hilites.today/api/v1/uscis/query) endpoint.

The new parameters are case_type and center.

With this, I suppose you can increase the maximum range to 5000 with no performance loss. I think that is important to see a list of all cases, related to the graph in the insights view (https://hilites.today/uscis_cases/insights)

What do you think?

jinshen-cn commented 2 years ago

the query is to scrape the USCIS webpage. so, no matter what parameters there, the performance is the same. Because the filter only happens after the scraping is done.

Maybe I can switch the query to query the existing data in the database, other than scrape the USCIS in real time.

bertolini10 commented 2 years ago

OK, understood. I thought that query was over your own database. Is essential to keep the query view to scrape USCIS.

But, if you have time, creating a new view, over your own database, with various filters, will be great.

Is up to you,

jinshen-cn commented 1 year ago

And an offline query that queries the stored data.

bertolini10 commented 1 year ago

thanks.