Skip to content

you could use a generator for the stringio part #9

@allan-simon

Description

@allan-simon

for item in items["messages"]:
values += item["message"] + "\n"

you first iterate over all the element a first time , and the your stringio need to go once again over all the bytes when you do the insert

by using this https://stackoverflow.com/a/32020108/1185460

you could directly feed you copy_from with an file-like iterator :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions