# \#proposal

**URL:** https://discuss.dgraph.io/tag/proposal/20.md

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

---

## [Suggestions to Improve GroupBy](https://discuss.dgraph.io/t/suggestions-to-improve-groupby/4630)

<div class="topic-metadata">

**Author:** [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Replies:** 6\
**Last updated:** [December 10, 2021, 6:47pm UTC](https://discuss.dgraph.io/t/suggestions-to-improve-groupby/4630 "2021-12-10T18:47:28Z")

</div>

Related discussions How to groupby date - #7 by labs20 - Dgraph - Discuss Dgraph Running total (cumulative sum) by date - #4 by MichelDiz - Dgraph - Discuss Dgraph What is the technical reason we can't store variable…

---

## [FOREACH func in DQL (loops in Bulk Upsert)](https://discuss.dgraph.io/t/foreach-func-in-dql-loops-in-bulk-upsert/5533)

<div class="topic-metadata">

**Author:** [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Replies:** 8\
**Last updated:** [July 9, 2020, 11:43pm UTC](https://discuss.dgraph.io/t/foreach-func-in-dql-loops-in-bulk-upsert/5533 "2020-07-09T23:43:33Z")

</div>

Ref of a DB doing something similar to it: Before starting see an example in the next comment block. Example with Bulk Upsert upsert { query { source as var(func: has(linkto)) { v0 as uid LK as linkt…

---

## [Custom Block - Discussion](https://discuss.dgraph.io/t/custom-block-discussion/4023)

<div class="topic-metadata">

**Author:** [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Replies:** 1\
**Last updated:** [February 12, 2019, 6:39pm UTC](https://discuss.dgraph.io/t/custom-block-discussion/4023 "2019-02-12T18:39:33Z")

</div>

PS. Some people may think that GraphQL Vars would be the same as a custom block at some level. But it is not possible to re-sign a G. Vars. Something that would be necessary to be reused in other blocks. One of the inte…
