diff --git a/nexus/catalog/migrations/V20__slot_updated_at.sql b/nexus/catalog/migrations/V20__slot_updated_at.sql new file mode 100644 index 000000000..6ef9a5084 --- /dev/null +++ b/nexus/catalog/migrations/V20__slot_updated_at.sql @@ -0,0 +1 @@ +CREATE INDEX index_slot_updated_at ON peerdb_stats.peer_slot_size (updated_at); \ No newline at end of file diff --git a/ui/app/api/peers/slots/[name]/route.ts b/ui/app/api/peers/slots/[name]/route.ts index 818124b1d..7ba1d943f 100644 --- a/ui/app/api/peers/slots/[name]/route.ts +++ b/ui/app/api/peers/slots/[name]/route.ts @@ -34,7 +34,6 @@ export async function GET( select: { updated_at: true, slot_size: true, - wal_status: true, }, where: { slot_name: context.params.name, @@ -42,7 +41,6 @@ export async function GET( gte: new Date(Date.now() - forThePastThisMuchTime), }, }, - take: 100, }); // convert slot_size to string @@ -54,7 +52,6 @@ export async function GET( ' ' + lagPoint.updated_at.toLocaleTimeString(), slotSize: lagPoint.slot_size?.toString(), - walStatus: lagPoint.wal_status, }; }); diff --git a/ui/app/dto/PeersDTO.ts b/ui/app/dto/PeersDTO.ts index d1b9720ea..a015439d8 100644 --- a/ui/app/dto/PeersDTO.ts +++ b/ui/app/dto/PeersDTO.ts @@ -55,5 +55,4 @@ export type PeerSetter = React.Dispatch>; export type SlotLagPoint = { updatedAt: string; slotSize?: string; - walStatus: string | null; };