Remove sequential ID generation and SyncAllCounters (bd-c7af, bd-8e05, bd-4c74)
- Removed SyncAllCounters() and all call sites (already no-op with hash IDs) - Removed AllocateNextID() and getNextIDForPrefix() - sequential ID generation - Removed collision remapping logic in internal/storage/sqlite/collision.go - Removed rename collision handling in internal/importer/importer.go - Removed branch-merge example (collision resolution no longer needed) - Updated EXTENDING.md to remove counter sync examples These were all deprecated code paths for sequential IDs that are obsolete with hash-based IDs. Hash ID collisions are handled by extending the hash, not by remapping to new sequential IDs.
This commit is contained in:
@@ -151,11 +151,7 @@ func profileImportOperation(t *testing.T, numIssues int) {
|
||||
phases["create_update"] = time.Since(createStart)
|
||||
|
||||
// Phase 4: Sync counters
|
||||
syncStart := time.Now()
|
||||
if err := sqliteStore.SyncAllCounters(ctx); err != nil {
|
||||
t.Fatalf("Failed to sync counters: %v", err)
|
||||
}
|
||||
phases["sync_counters"] = time.Since(syncStart)
|
||||
// REMOVED (bd-c7af): Counter sync - no longer needed with hash IDs
|
||||
|
||||
totalDuration := time.Since(startTime)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user