Skip to content

Optimize sqlite implementation.#702

Open
Xreki wants to merge 6 commits intoPaddlePaddle:developfrom
Xreki:opt_sqlite
Open

Optimize sqlite implementation.#702
Xreki wants to merge 6 commits intoPaddlePaddle:developfrom
Xreki:opt_sqlite

Conversation

@Xreki
Copy link
Copy Markdown
Collaborator

@Xreki Xreki commented May 9, 2026

PR Category

Other

Description

Xreki and others added 2 commits May 9, 2026 13:24
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Extract the insertion logic into a reusable insert_one_sample() function
so build_db.py can import it directly instead of duplicating the code.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented May 9, 2026

Thanks for your contribution!

Xreki and others added 2 commits May 9, 2026 15:29
- init_db: compute migrates_dir from script location instead of CWD-relative path
- build_db: use main(args), add --op_names_path_prefix as required arg, auto-create db via migrate()
- Remove unused GRAPH_NET_ROOT and graph_net import from build_db

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Auto-collect sample paths by scanning for model.py when list file is missing
- Use loop over sample_types instead of repeated code blocks
- Track and print success/fail counts and order range per type

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Xreki and others added 2 commits May 9, 2026 16:11
- Skip non-full_graph types when directory is missing
- Print sample dir and list file paths before processing each type

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant