Update csv_export

This commit is contained in:
mathan 2024-02-21 13:40:18 -08:00
parent 9d4bb721cf
commit 3c632ebe97
4 changed files with 5 additions and 6 deletions

View file

@ -38,12 +38,11 @@ Get list blocks
non-partitioned (very slow)
```
select count(*) from (select distinct repo from records where collection in ('app.bsky.graph.listblock') and content['subject']::tex
t like '"at://did:plc:bmjomljebcsuxolnygfgqtap/%');
select count(*) from (select distinct repo from records where collection in ('app.bsky.graph.listblock') and deleted=false and content['subject']::text like '"at://did:plc:bmjomljebcsuxolnygfgqtap/%');
```
partitioned (slow)
`select count(*) from (select distinct repo from records_listblock where content['subject']::text like '"at://did:plc:bmjomljebcsuxolnygfgqtap/%');`
`select count(*) from (select distinct repo from records_listblock where deleted=false and content['subject']::text like '"at://did:plc:bmjomljebcsuxolnygfgqtap/%');`
Count all records