domeccleston / sharegpt

Easily share permanent links to ChatGPT conversations with your friends
https://sharegpt.com
MIT License
1.75k stars 214 forks source link

Pagination is very slow #51

Closed lodorg closed 1 year ago

lodorg commented 1 year ago

Hello,

I am writing about an issue that I encountered with the "ShareGPT" repository on GitHub. When attempting to retrieve conversations by page, I noticed that as the number of pages increases, the query becomes slower, eventually leading to a timeout on the Vercel Serverless Functions. Specifically, I found it almost impossible to retrieve conversations beyond page 200.

As an example, I tried to retrieve conversations from page 1000 using the following query: https://sharegpt.com/api/conversations?page=1000

However, the query resulted in a 504 error with the message "GATEWAY_TIMEOUT" and the code "FUNCTION_INVOCATION_TIMEOUT."

steven-tey commented 1 year ago

Update: We removed the Explore page on ShareGPT recently so this issue is no longer relevant – closing it now!