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

Cache support? #8

Closed
singingwolfboy opened this issue Dec 10, 2014 · 1 comment
Closed

Cache support? #8

singingwolfboy opened this issue Dec 10, 2014 · 1 comment

Comments

@singingwolfboy
Copy link

I want to use this with the Github API, but the Github API is rate limited to 5000 requests per hour and sadly, the queries that I need to do require more than 5000 requests. (It involves querying all the historical pull requests across several very active repositories.) Does this project have any sort of cache support, so that I could pull the results of 5000 requests into a Postgres table, wait an hour, and then update the table with 5000 more? It would also allow me to do more than one query per hour, which would be very helpful. :)

If the project doesn't support this, do you have any suggestions for how I could go about implementing this? Maybe point me at documentation? I'm familiar with Postgresql, but I've never used foreign data wrappers before.

@cyga
Copy link
Owner

cyga commented Dec 10, 2014

No, it doesn't support cache.
But you can configure your own cache server redirecting requests to github
API.
10 ÄÅË. 2014 Ç. 21:52 ÐÏÌØÚÏ×ÁÔÅÌØ "David Baumgold" <
notifications@github.com> ÎÁÐÉÓÁÌ:

I want to use this with the Github API, but the Github API is rate
limited to 5000 requests per hour
https://developer.github.com/v3/#rate-limiting and sadly, the queries
that I need to do require more than 5000 requests. (It involves querying
all the historical pull requests across several very active repositories.)
Does this project have any sort of cache support, so that I could pull the
results of 5000 requests into a Postgres table, wait an hour, and then
update the table with 5000 more? It would also allow me to do more than one
query per hour, which would be very helpful. :)

If the project doesn't support this, do you have any suggestions for how I
could go about implementing this? Maybe point me at documentation? I'm
familiar with Postgresql, but I've never used foreign data wrappers before.

Reply to this email directly or view it on GitHub
#8.

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

No branches or pull requests

2 participants