mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:42:24 -05:00 
			
		
		
		
	[chore] add log line about lengthy reindex migration (#2695)
This commit is contained in:
		
					parent
					
						
							
								ad28b9f166
							
						
					
				
			
			
				commit
				
					
						f29d429699
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -21,6 +21,7 @@ import ( | ||||||
| 	"context" | 	"context" | ||||||
| 
 | 
 | ||||||
| 	gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | 	gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||||
|  | 	"github.com/superseriousbusiness/gotosocial/internal/log" | ||||||
| 	"github.com/uptrace/bun" | 	"github.com/uptrace/bun" | ||||||
| 	"github.com/uptrace/bun/dialect" | 	"github.com/uptrace/bun/dialect" | ||||||
| ) | ) | ||||||
|  | @ -38,6 +39,8 @@ func init() { | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error { | 		return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error { | ||||||
|  | 			log.Info(ctx, "reindexing statuses_account_id_id_idx -> statuses_account_view_idx; this may take a few minutes, please don't interrupt this migration!") | ||||||
|  | 
 | ||||||
| 			// Remove previous index for viewing | 			// Remove previous index for viewing | ||||||
| 			// statuses created by account. | 			// statuses created by account. | ||||||
| 			if _, err := tx. | 			if _, err := tx. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue