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

Deletion strategy reset ids sequence

Open
#7 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
postgresql, ruby
Domain
databases

Research direction

Start by locating the ActiveRecord deletion strategy and its PostgreSQL-specific handling; the issue provides no file or test entry point. Compare the deletion and truncation behavior, then define how sequence resetting should work without the reported truncation cost and verify it with PostgreSQL-focused tests.

Written by the indexing model from the issue text.

Description

Is it possible with deletion strategy to reset ids sequence (Postgres) ? Cannot use truncation strategy, because it is really slow for us. (truncation - 8 sec, deletion 0.3 sec)

Dominant language
Ruby
Stars
76
Forks
76
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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 DatabaseCleaner/database_cleaner-active_record

All issues in DatabaseCleaner/database_cleaner-active_record

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.