# \#area:performance

**URL:** https://discuss.dgraph.io/tag/area-performance/150.md

[Latest](https://discuss.dgraph.io/latest.md) · [Categories](https://discuss.dgraph.io/categories.md) · [Tags](https://discuss.dgraph.io/tags.md)

---

## [Can dgraph do the following use case?](https://discuss.dgraph.io/t/can-dgraph-do-the-following-use-case/17932)

<div class="topic-metadata">

**Author:** [@zooney](https://discuss.dgraph.io/u/zooney)\
**Replies:** 9\
**Last updated:** [December 14, 2022, 7:13pm UTC](https://discuss.dgraph.io/t/can-dgraph-do-the-following-use-case/17932 "2022-12-14T19:13:33Z")

</div>

Hi, Can dgraph handle the following use case: 1000 clients Each writing 1 mb every 0.25seconds (4mb/s) Hence 4000 mutations each being 1mb being sent a second. And if so, what cluster spec? Currently I am requiring a…

---

## [Query is very slow while adding le function for float predicate in filter](https://discuss.dgraph.io/t/query-is-very-slow-while-adding-le-function-for-float-predicate-in-filter/17952)

<div class="topic-metadata">

**Author:** [@zedzhu](https://discuss.dgraph.io/u/zedzhu)\
**Replies:** 6\
**Last updated:** [November 15, 2022, 8:46pm UTC](https://discuss.dgraph.io/t/query-is-very-slow-while-adding-le-function-for-float-predicate-in-filter/17952 "2022-11-15T20:46:54Z")

</div>

Report a Dgraph Bug What version of Dgraph are you using? ▶ Dgraph Version Performance problem When I run the following query, it is extremely slow: { q(func: eq(cid3\_1, 717), first: 1000) @filter(eq(brand\_1, "GODEX…

---

## [How to optimize the query?](https://discuss.dgraph.io/t/how-to-optimize-the-query/17853)

<div class="topic-metadata">

**Author:** [@praslar](https://discuss.dgraph.io/u/praslar)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 3:17am UTC](https://discuss.dgraph.io/t/how-to-optimize-the-query/17853 "2022-10-19T03:17:28Z")

</div>

What I want to do I want to have the best performance query to get a recommended list. What I did I have a list of users, each user has a unique address and a list of tags (tag can be anything the user has: tokens, pr…

---

## [V21.12 slow queries](https://discuss.dgraph.io/t/v21-12-slow-queries/16397)

<div class="topic-metadata">

**Author:** [@iluminae](https://discuss.dgraph.io/u/iluminae)\
**Replies:** 4\
**Last updated:** [December 30, 2021, 4:00pm UTC](https://discuss.dgraph.io/t/v21-12-slow-queries/16397 "2021-12-30T16:00:42Z")

</div>

Much has been said about how v21.12 is 30x faster than v21.03 but check out these histograms, the bottom is the average query latency histogram from this day last week on v21.03.2, and the top is current with v21.12. Bot…

---

## [Slow performance on ~ 100M vertices graph from Wikidata](https://discuss.dgraph.io/t/slow-performance-on-100m-vertices-graph-from-wikidata/15491)

<div class="topic-metadata">

**Author:** [@pepi](https://discuss.dgraph.io/u/pepi)\
**Replies:** 18\
**Last updated:** [December 13, 2021, 5:54pm UTC](https://discuss.dgraph.io/t/slow-performance-on-100m-vertices-graph-from-wikidata/15491 "2021-12-13T17:54:23Z")

</div>

Hello, and congratulation on the great project. I am evaluating the possible use of Dgraph for a solution within my company. I started from a JSON Wikidata dump, simplified the structure a bit by removing references, u…

---

## [Vlog files use lots of disk space: Add option to set LSMOnly option when opening p dir](https://discuss.dgraph.io/t/vlog-files-use-lots-of-disk-space-add-option-to-set-lsmonly-option-when-opening-p-dir/8776)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 20\
**Last updated:** [December 6, 2021, 8:04am UTC](https://discuss.dgraph.io/t/vlog-files-use-lots-of-disk-space-add-option-to-set-lsmonly-option-when-opening-p-dir/8776 "2021-12-06T08:04:35Z")

</div>

Moved from GitHub dgraph/3511 Posted by shamil: Hi, We have about 10MB of actual data in Dgraph, but the wal directory with vlog files taking about 56GB, I understand that there should be some kind of GC running each …

---

## [Huge index building memory growth](https://discuss.dgraph.io/t/huge-index-building-memory-growth/16102)

<div class="topic-metadata">

**Author:** [@iluminae](https://discuss.dgraph.io/u/iluminae)\
**Replies:** 1\
**Last updated:** [November 19, 2021, 7:14am UTC](https://discuss.dgraph.io/t/huge-index-building-memory-growth/16102 "2021-11-19T07:14:48Z")

</div>

When creating indicies that result in large amounts of storage for the index, memory growth grows linearly and is nearly unmanageable on 64GiB systems. I have not looked into the code yet on why it follows this pattern, …

---

## [Support composite indexes](https://discuss.dgraph.io/t/support-composite-indexes/8755)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 5\
**Last updated:** [September 18, 2021, 9:37pm UTC](https://discuss.dgraph.io/t/support-composite-indexes/8755 "2021-09-18T21:37:56Z")

</div>

Moved from GitHub dgraph/2660 Posted by pierreis: Unless I missed some key information, it is not possible to create composite indexes in Dgraph. Supporting this feature would help some use-cases requiring filtering on…

---

## [Add a 'Contains(key)' to the API for the Txn and DB objects](https://discuss.dgraph.io/t/add-a-contains-key-to-the-api-for-the-txn-and-db-objects/15330)

<div class="topic-metadata">

**Author:** [@Jeff\_Winkler](https://discuss.dgraph.io/u/Jeff_Winkler)\
**Replies:** 0\
**Last updated:** [August 20, 2021, 4:38am UTC](https://discuss.dgraph.io/t/add-a-contains-key-to-the-api-for-the-txn-and-db-objects/15330 "2021-08-20T04:38:31Z")

</div>

To facilitate better answering of questions, if you have a question, please fill in the following info. Otherwise, please delete the template. What I want to do I’d like to see if there’s already a patch / branch that d…

---

## [Optimization for performance for node property updates?](https://discuss.dgraph.io/t/optimization-for-performance-for-node-property-updates/14531)

<div class="topic-metadata">

**Author:** [@arpanbag001](https://discuss.dgraph.io/u/arpanbag001)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 2:03pm UTC](https://discuss.dgraph.io/t/optimization-for-performance-for-node-property-updates/14531 "2021-06-10T14:03:33Z")

</div>

Use case: Nodes: User: UserId (string, index) Conversation: ConversationId (string, index), lastUpdateTime (int) Edges: User —ParticipatesIn----\> Conversation Conversation —ParticipatedBy-----\> User Queries: Get…

---

## [Slow queries when using lambdas](https://discuss.dgraph.io/t/slow-queries-when-using-lambdas/14312)

<div class="topic-metadata">

**Author:** [@repomaa](https://discuss.dgraph.io/u/repomaa)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 12:45am UTC](https://discuss.dgraph.io/t/slow-queries-when-using-lambdas/14312 "2021-05-26T00:45:45Z")

</div>

I noticed, that as soon as a lambda field is involved in a query returning a list of results, the queries take multiple seconds to complete. I suspect that dgraph is performing a single lambda request for each field. I w…

---

## [Zero cannot complete the cluster join process when the disk write speed is slow](https://discuss.dgraph.io/t/zero-cannot-complete-the-cluster-join-process-when-the-disk-write-speed-is-slow/8772)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 5\
**Last updated:** [May 13, 2021, 10:15am UTC](https://discuss.dgraph.io/t/zero-cannot-complete-the-cluster-join-process-when-the-disk-write-speed-is-slow/8772 "2021-05-13T10:15:12Z")

</div>

Moved from GitHub dgraph/3471 Posted by chuerxiao: If you suspect this could be a bug, follow the template. What version of Dgraph are you using? v1.0.14 Have you tried reproducing the issue with latest release? …

---

## [Slow query when apply @filter or order to predicates](https://discuss.dgraph.io/t/slow-query-when-apply-filter-or-order-to-predicates/13407)

<div class="topic-metadata">

**Author:** [@taina](https://discuss.dgraph.io/u/taina)\
**Replies:** 5\
**Last updated:** [May 6, 2021, 1:02pm UTC](https://discuss.dgraph.io/t/slow-query-when-apply-filter-or-order-to-predicates/13407 "2021-05-06T13:02:24Z")

</div>

Report a Dgraph Bug What version of Dgraph are you using? ▶ Docker dgraph/dgraph:v20.11.2 Have you tried reproducing the issue with the latest release? Yes, the latest release is v20.11.2 What is the hardware spec (RAM, O…

---

## [Increasing latency](https://discuss.dgraph.io/t/increasing-latency/5363)

<div class="topic-metadata">

**Author:** [@vdubc](https://discuss.dgraph.io/u/vdubc)\
**Replies:** 25\
**Last updated:** [February 2, 2021, 3:30pm UTC](https://discuss.dgraph.io/t/increasing-latency/5363 "2021-02-02T15:30:25Z")

</div>

we have: 1. dgraph 1.1.0: Built at 2019-10-28T17:50:33.873Z Commit: c8e58bf Commit Info: c8e58bf Mon Oct 28 19:50:19 2019 +0200 (HEAD -\> master, origin/master, origin/HEAD) 2. 5 instances x 4cores, 32GB each (aws clou…

---

## [When writing data, dgraph takes up too much memory](https://discuss.dgraph.io/t/when-writing-data-dgraph-takes-up-too-much-memory/12309)

<div class="topic-metadata">

**Author:** [@zzl221000](https://discuss.dgraph.io/u/zzl221000)\
**Replies:** 7\
**Last updated:** [January 20, 2021, 12:26pm UTC](https://discuss.dgraph.io/t/when-writing-data-dgraph-takes-up-too-much-memory/12309 "2021-01-20T12:26:53Z")

</div>

Problem I use Java to update the Dgraph data. It runs about 1200 mutations per second. After a while, the machine gets stuck and the load average reaches 500. There are already 800 million points and 1.6 billion edges i…

---

## [Feature Request: Reverse Query for auth rule](https://discuss.dgraph.io/t/feature-request-reverse-query-for-auth-rule/11106)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 2\
**Last updated:** [December 10, 2020, 11:26pm UTC](https://discuss.dgraph.io/t/feature-request-reverse-query-for-auth-rule/11106 "2020-12-10T23:26:36Z")

</div>

Really have been digging into performance of our auth rules this week trying to optimize everything I can on my end. I have a schema with auth rules such as: type User @auth( query: { or: \[ { rule: "{$USERROLE: {…

---

## [\[disaster recovery\] Cluster unable to recover after crash during intensive writing operations](https://discuss.dgraph.io/t/disaster-recovery-cluster-unable-to-recover-after-crash-during-intensive-writing-operations/8861)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 12\
**Last updated:** [November 17, 2020, 9:02pm UTC](https://discuss.dgraph.io/t/disaster-recovery-cluster-unable-to-recover-after-crash-during-intensive-writing-operations/8861 "2020-11-17T21:02:10Z")

</div>

Moved from GitHub dgraph/5836 Posted by christian-roggia: What version of Dgraph are you using? This issue has been consistently observed in all the following versions: v20.03 v20.07.0-beta.Jun15 v20.07.0-beta.Jun22 …

---

## [Dgraph High Write Throughput](https://discuss.dgraph.io/t/dgraph-high-write-throughput/11440)

<div class="topic-metadata">

**Author:** [@rdurkin](https://discuss.dgraph.io/u/rdurkin)\
**Replies:** 0\
**Last updated:** [November 12, 2020, 5:02pm UTC](https://discuss.dgraph.io/t/dgraph-high-write-throughput/11440 "2020-11-12T17:02:35Z")

</div>

Hello, Just starting to explore DGraph a bit more. I just loaded the “movie” data set on my local setup (https://dgraph.io/tour/moredata/1/) and got around 5000 updates/sec on my 2015 Macbook pro. I’m sure this isn’t rep…

---

## [How does auth get applied when the types are seen at multiple levels?](https://discuss.dgraph.io/t/how-does-auth-get-applied-when-the-types-are-seen-at-multiple-levels/11016)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 3:56pm UTC](https://discuss.dgraph.io/t/how-does-auth-get-applied-when-the-types-are-seen-at-multiple-levels/11016 "2020-10-20T15:56:00Z")

</div>

I already have a great answer about how multiple auth rules are handled over on http://dgraph.discourse.group/t/order-of-auth-directive-processing/7515/2?u=amaster507, but what I want to know specifically here is if a node/T…

---

## [Consistent Increase in memory usage for zero leader](https://discuss.dgraph.io/t/consistent-increase-in-memory-usage-for-zero-leader/10598)

<div class="topic-metadata">

**Author:** [@killerknv](https://discuss.dgraph.io/u/killerknv)\
**Replies:** 7\
**Last updated:** [October 13, 2020, 3:37pm UTC](https://discuss.dgraph.io/t/consistent-increase-in-memory-usage-for-zero-leader/10598 "2020-10-13T15:37:42Z")

</div>

What version of Dgraph are you using? v20.07.0 Have you tried reproducing the issue with the latest release? Yes What is the hardware spec (RAM, OS)? alpha pods: 12 \* (14 G, 6 cpu) zero pods: 3 \* (5G, 4 cpu) shard re…

---

## [Offset-based pagination is slow](https://discuss.dgraph.io/t/offset-based-pagination-is-slow/8774)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 7\
**Last updated:** [September 4, 2020, 1:24pm UTC](https://discuss.dgraph.io/t/offset-based-pagination-is-slow/8774 "2020-09-04T13:24:19Z")

</div>

Moved from GitHub dgraph/3473 Posted by romshark: Since after-based pagination doesn’t work (see #3472 and #2744 and the forum) I had to fall back to offset-based pagination instead, which I expected to be slow (since …

---

## [How does data size vs. query/mutate rate vs. complexity of queries/mutations affect RAM?](https://discuss.dgraph.io/t/how-does-data-size-vs-query-mutate-rate-vs-complexity-of-queries-mutations-affect-ram/9612)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 1\
**Last updated:** [August 24, 2020, 7:07am UTC](https://discuss.dgraph.io/t/how-does-data-size-vs-query-mutate-rate-vs-complexity-of-queries-mutations-affect-ram/9612 "2020-08-24T07:07:32Z")

</div>

Dgraph’s crutch of RAM usage is still a mystery to me. Trying to plan which Slash pricing plan works best for us, is hard not knowing how we will scale once we go live and start to exponentially add new users. When we i…

---

## [Slow performance on a single node with millions of documents](https://discuss.dgraph.io/t/slow-performance-on-a-single-node-with-millions-of-documents/9454)

<div class="topic-metadata">

**Author:** [@jameyg](https://discuss.dgraph.io/u/jameyg)\
**Replies:** 7\
**Last updated:** [August 24, 2020, 3:05am UTC](https://discuss.dgraph.io/t/slow-performance-on-a-single-node-with-millions-of-documents/9454 "2020-08-24T03:05:31Z")

</div>

I’m using Dgraph to import some arbitrary data sets and join them together on certain matching keys. In my tests, I’ve got four large data sets ranging from 700k to 3 million documents each. They are joining on things l…

---

## [Performance regression 1.6 to 2.0.2](https://discuss.dgraph.io/t/performance-regression-1-6-to-2-0-2/8729)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 30\
**Last updated:** [August 23, 2020, 2:37pm UTC](https://discuss.dgraph.io/t/performance-regression-1-6-to-2-0-2/8729 "2020-08-23T14:37:29Z")

</div>

Moved from GitHub badger/1254 Posted by dougdonohoe: What version of Go are you using (go version)? go version go1.12.7 darwin/amd64 What version of Badger are you using? 2.0.2 (upgrading from 1.6.0) Does this issue…

---

## [Filter vs Function performance](https://discuss.dgraph.io/t/filter-vs-function-performance/9249)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 4\
**Last updated:** [August 6, 2020, 2:43am UTC](https://discuss.dgraph.io/t/filter-vs-function-performance/9249 "2020-08-06T02:43:53Z")

</div>

Is there any performance degradation from moving a filter to the @filter instead of the function? Let’s say I have a type of Contact that has 30K nodes. I want to get all of them that have the Contact.firstName predicat…

---

## [Counting predicate cardinality should be fast](https://discuss.dgraph.io/t/counting-predicate-cardinality-should-be-fast/8580)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 12:33pm UTC](https://discuss.dgraph.io/t/counting-predicate-cardinality-should-be-fast/8580 "2020-07-28T12:33:57Z")

</div>

Moved from GitHub dgraph/5813 Posted by EnricoMi: Experience Report What you wanted to do I want to know how many uids have a specific predicate. What you actually did The query { result (func: has(pred)) { cou…

---

## [Pagination with \`offset\` does not scale with var blocks](https://discuss.dgraph.io/t/pagination-with-offset-does-not-scale-with-var-blocks/8578)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 7:57am UTC](https://discuss.dgraph.io/t/pagination-with-offset-does-not-scale-with-var-blocks/8578 "2020-07-03T07:57:08Z")

</div>

Moved from GitHub dgraph/5808 Posted by EnricoMi: What version of Dgraph are you using? 20.03.3 Have you tried reproducing the issue with the latest release? Yes What is the hardware spec (RAM, OS)? Unrelated Steps …

---

## [Pagination with \`offset\` should scale like \`after\`](https://discuss.dgraph.io/t/pagination-with-offset-should-scale-like-after/8577)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 7:38am UTC](https://discuss.dgraph.io/t/pagination-with-offset-should-scale-like-after/8577 "2020-07-03T07:38:50Z")

</div>

Moved from GitHub dgraph/5807 Posted by EnricoMi: Experience Report What you wanted to do I want to retrieve my result set via pagination as 1) I expect large results and 2) want to have fixed memory requirements while…

---

## [Spikes in read transaction time with in memory mode badger](https://discuss.dgraph.io/t/spikes-in-read-transaction-time-with-in-memory-mode-badger/8678)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 5\
**Last updated:** [July 2, 2020, 10:41am UTC](https://discuss.dgraph.io/t/spikes-in-read-transaction-time-with-in-memory-mode-badger/8678 "2020-07-02T10:41:18Z")

</div>

Moved from GitHub badger/1390 Posted by hqhs: What version of Go are you using (go version)? $ go version go version go1.14 What operating system are you using? amd64, dockerized What version of Badger are you using? …

---

## [Online write and query too slow](https://discuss.dgraph.io/t/online-write-and-query-too-slow/8549)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 4:58am UTC](https://discuss.dgraph.io/t/online-write-and-query-too-slow/8549 "2020-07-01T04:58:05Z")

</div>

Moved from GitHub dgraph/5590 Posted by JimWen: What version of Dgraph are you using? Dgraph version : v20.03.3 Dgraph SHA-256 : 08424035910be6b6720570427948bab8352a0b5a6d59a0d20c3ec5ed29533121 Commit SHA-1 …

[Next page](https://discuss.dgraph.io/tag/area-performance/150.md?match_all_tags=true&page=1&tags%5B%5D=area%3Aperformance)
