Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move request_graph.py to server side #12

Open
Ezibenroc opened this issue Mar 1, 2015 · 0 comments
Open

Move request_graph.py to server side #12

Ezibenroc opened this issue Mar 1, 2015 · 0 comments

Comments

@Ezibenroc
Copy link
Member

The execution of request_graph.py implies to send a lot of data for nothing.
We could reduce this by moving the script to the server, and sending only the useful data.

For instance, if the user wants some stats with a granulometry of 1h, send:

[['2015-03-01 09:00:00', 3]]

instead of:

[['birth date of "charles maurras"', '2015-03-01 09:59:03.390558'],
 ['birth date of charles maurras', '2015-03-01 09:58:49.990248'],
 ['birth date of maurras', '2015-03-01 09:58:42.594906']]

Moreover, the number of data to send will be reduced since we will send only the data for the relevant interval, not all the queries.

The parameters to add to the API would be a parameter to choose what data the user wants (the queries or only the stats) and the parameters interval and granulometry.

Then, in request_graph.py there will only remains the code to generate the graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant