🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.bazy-danych
1 messages
1 total messages Started by Jakub Sat, 06 Jan 2018 09:52
Re index primary key
#188594
Author: Jakub
Date: Sat, 06 Jan 2018 09:52
12 lines
327 bytes
witam
Mam tabelę z kolumną  primary index auto increment.
Tabela powyżej 1GB.
Czasami muszę od czasu do czasu dokonać reindeksacji.

znalazłem takie coś:

SET @newid=0;
UPDATE jpage SET ind=(@newid:=@newid+1) ORDER BY ind;

Czy może znacie coś bardziej efektywnego?
Pozdrawiam i z góry dziękuję za podpowiedzi
Jakub
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads