Skip to content

Conversation

@sauramel
Copy link
Owner

Summary

  • optimize SQLite export with transaction and indexes
  • add query_crafting_db.py for dependency queries
  • document query usage in README

Testing

  • python3 -m py_compile create_crafting_db.py query_crafting_db.py

https://chatgpt.com/codex/tasks/task_e_685eb3b388ac83318c4976ced53993e1

PRAGMA synchronous = NORMAL;

CREATE TABLE IF NOT EXISTS items (
id INTEGER PRIMARY KEY,
Copy link

@fsobolev fsobolev Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not experienced in SQL, but as I understand INTEGER means Int32. It doesn't fit, items IDs in BitPlanner scripts are expected to be in range of UInt64 (BIGINT UNSIGNED), by using Int32 you will get overflow on cargo items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants