deep-foundation / deep-foundation/deeplinks
Infinite deleting
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
# Description
I have a lot of links (67538) and their deletion takes a lot of time
# Gql mutation
```gql
mutation MyQuery {
delete_links(where:{
id:{
_gt: 1000
}
}) {
affected_rows
}
}
```
# Result

I am waiting for my result more than a minute and it is not finished yet
# Additional Info
Note that my deep is working:

I have got amount of created links by using this code:
```ts
import { DeepClient } from "@deep-foundation/deeplinks/imports/client.js";
import { generateApolloClient } from '@deep-foundation/hasura/client.js';
const apolloClient = generateApolloClient({
path: MY_PATH,
ssl: true,
});
const unloginedDeep = new DeepClient({ apolloClient });
const guest = await unloginedDeep.guest();
const guestDeep = new DeepClient({ deep: unloginedDeep, ...guest });
const admin = await guestDeep.login({
linkId: await guestDeep.id('deep', 'admin'),
});
const deep = new DeepClient({ deep: guestDeep, ...admin });
console.log(await deep.select({}).then((result) => result.data.length))
```
I have tried to check amount of links during deletion process but amount, in opposite, is increased to `67553`. Why am not I able to delete links?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.