Skip to content

High RAM usage #558

@markon1

Description

@markon1

Hi, I made this simple node.js app:
http://pastebin.com/Ua9Q6zqj

As you can see, I load database.json file, do some alasql query on it and return that data as response.
database.json is ~50MB in size.
My problem is that this app uses 400-600MB of RAM!

I made this version too, where I open database.json file using .require, but memory consumption is same!

http://pastebin.com/EEhcPmyG

What am I doing wrong, I suppose it is some issue regarding the size of my JSON file? It is array of 55000 records, each one having 20 fields, if that info helps you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions