Skip to content

Take too much time with large amount of dataset(over 5,000,000) #60

@minku1024

Description

@minku1024

Query : select Meta().id, * from TestDB

DB : TestDB -> has 5,120,000 documents.

Take too much time(almost 5 hrs) to get result.

I think it's problem of fetchsize(Resultset take all dataset at once).

Is there something solution to avoid it?

code spend almost all time in CharArrayBuffer.append and CharArrayBuffer.expand.

    at org.apache.http.util.CharArrayBuffer.expand(CharArrayBuffer.java:62)
    at org.apache.http.util.CharArrayBuffer.append(CharArrayBuffer.java:92)
    at org.apache.http.util.EntityUtils.toString(EntityUtils.java:248)
    at org.apache.http.util.EntityUtils.toString(EntityUtils.java:291)
    at com.couchbase.jdbc.core.ProtocolImpl.handleResponse(ProtocolImpl.java:412)
    at com.couchbase.jdbc.core.ProtocolImpl.query(ProtocolImpl.java:366)
    at com.couchbase.jdbc.CBStatement.executeQuery(CBStatement.java:75)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions