Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

perf: offer array-shaped query results

Open
#397 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, javascript, react-native, sqlite

Research direction

Begin with PR #389's converter and the existing synchronous, asynchronous, and prepared-statement query entry points. Add coverage for both result modes, including duplicate aliases, NULL, text, numbers, BLOBs, and empty results, then compare narrow and wide full-row consumption on iOS and Android Release builds for conversion time and peak memory.

Written by the indexing model from the issue text.

Description

area:api area:runtime enhancement

Object-shaped results create a JavaScript object and set a property for every returned column. PR #389 removes the native row maps and an intermediate copy, but its converter still builds those JavaScript objects. For callers that consume wide results by column position, an array-shaped result may reduce conversion time and memory.

Add an opt-in result mode that returns each row as an array alongside column names in SQL order. Keep the existing object-shaped result as the default. The API should work for ordinary synchronous and asynchronous queries and prepared statements without creating a second SQL execution path. An ordered column list matters because duplicate aliases cannot be represented faithfully by the current metadata map.

Measure this against the object converter after #389 on the same Release builds. Include both narrow and wide queries, full row consumption, conversion time, and peak memory on iOS and Android. Preserve the old behavior for duplicate aliases in object mode and test NULL, text, numbers, BLOBs, and empty results in both modes.

Related: #30, #62, #389. The timings in #30 came from the old QuickSQLite implementation and are not an expected v10 speedup.

Dominant language
C
Stars
567
Forks
53
Avg merge
2d 5h
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from margelo/react-native-nitro-sqlite

All issues in margelo/react-native-nitro-sqlite

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.