Skip to content

Concerns about the way node-oracle handles cursors in results from stored procs #62

@richsad

Description

@richsad

While reviewing the C++ code for my previous issue #61, I noticed that when a stored proc returns a cursor the node-oracle code in connection.cpp automatically iterates over the results and builds an array of all results. This is fine for smaller datasets and even datasets with thousands or tens of thousands of results, but it would be a problem for any stored proc returning millions of rows.

My guess is that the cursors are hidden from node.js for simplicity reasons. But this eventually going to blow up in someone's face. It would be awesome to have a second method for calling a stored proc that returns a cursor to pass some object representing the cursor back to calling node.js code and allow the node.js programmer to then iterate over the results.

While I will most like use the fork I made today to fix my problems in issue 61, I doubt I will have time to tackle the results cursor. Has anyone ever encountered a problem with the returned array? As I've mentioned I am doing work for a very large media company. There are certainly values that we may query from node.js that could approach a million rows!

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