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

Is it possible to fetch a portion of the text? #5884

Open
longtaosha opened this issue Aug 24, 2023 · 1 comment
Open

Is it possible to fetch a portion of the text? #5884

longtaosha opened this issue Aug 24, 2023 · 1 comment

Comments

@longtaosha
Copy link


name: getText from line 20 to line 100, for example
about: Sometimes, I have a large of content, it slows down the server when I retreive them all, but I only needs the last, say, 100 lines, if it's possible to only get the last 100 lines, it would be very helpful.
title: 'fetch a portion of the text'
labels: enhancement
assignees:


Describe the solution you'd like
A clear and concise description of what you want to happen.
Provide an api, like getTextPart (startLine, endLine)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
I'm retreiving the content in real time, to display it on a different client, so I would like to have the texts in real time, like a less than 2s latency, now when the cotent goes over 1000 lines, the latency goes over 6, 7s - because the content retreiving
takes much longer time due to large nubmer of texts.
Google docs has a feature that you can actually define a start index and end index when you retreive the text, so I would expect Etherpad has a simliar, but it seems that it doens't have one currently.

@SamTV12345
Copy link
Member

Doesn't seem to be possible currently. So if you'd like to submit a pull request feel free to do so.

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

2 participants