deep-foundation / deep-foundation/deeplinks

Infinite deleting

Open
#267 5 comments 0 reactions 1 assignee Claimed by @konard View on GitHub
bug
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
![image](https://github.com/deep-foundation/deeplinks/assets/66206278/59fdc3c3-63e1-4f2f-a046-84b2de76ef2c)
I am waiting for my result more than a minute and it is not finished yet

# Additional Info
Note that my deep is working:
![image](https://github.com/deep-foundation/deeplinks/assets/66206278/20edf58f-02c0-4f3c-a3b7-26149b10d725)
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.