Skip to content

High memory usage & unexpected logging just by importing NitroSQLite.executeAsync #185

Open

Description

@PwGawzynski

Hi! 👋
I’m experiencing a strange issue when using NitroSQLite in my Expo / React Native app (dev build).

I have a simple function like this:

export const selectTracks = async (limit: number, offset: number) => {
  return NitroSQLite.executeAsync(
    'tracks',
    'SELECT track_id FROM "Tracks" LIMIT ? OFFSET ?;',
    [limit, offset],
  ).then(({ rows }) => rows.item(0));
};

The problem is that no matter where I put this function — even if I don’t call selectTracks at all — just importing the file causes a huge memory spike. On top of that, I see a massive console output like this, even though I’m not using any console.log anywhere:

{"insertId": 0, "rows": {"_array": [[Object], [Object], [Object], ... ]}}

Is it possible that NitroSQLite is somehow loading the entire database into memory when I use select ?
Or is there any internal logging happening automatically?

Any help would be greatly appreciated 🙏

Activity

  1. changed the title [-]High memory usage & unexpected logging just by importing NitroSQLite[/-] [+]High memory usage & unexpected logging just by importing NitroSQLite.executeAsync[/+] on Jun 2, 2025
  2. added
    bugIncorrect behavior or a change that fixes it.
    area:runtimeDatabase lifecycle, SQL execution, transactions, or native runtime.
    triage:needs-infoMissing versions, platform, logs, or other facts needed to investigate.
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:runtimeDatabase lifecycle, SQL execution, transactions, or native runtime.bugIncorrect behavior or a change that fixes it.triage:needs-infoMissing versions, platform, logs, or other facts needed to investigate.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions