# Benefit of Extractor?

**URL:** <https://forum.canton.network/t/benefit-of-extractor/793>\
**Category:** App Development\
**Created:** [July 6, 2020, 7:41am UTC](https://forum.canton.network/t/benefit-of-extractor/793 "2020-07-06T07:41:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishchal\_Vashisht](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nishchal_vashisht/32/362_2.png) [@Nishchal\_Vashisht](https://forum.canton.network/u/Nishchal_Vashisht)\
**Post date:** [July 6, 2020, 7:41am UTC](https://forum.canton.network/t/benefit-of-extractor/793/1 "2020-07-06T07:41:28Z")

</div>

what is the benefit of using extractor if only a single authorize party can extract only its data?

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [July 6, 2020, 7:49am UTC](https://forum.canton.network/t/benefit-of-extractor/793/2 "2020-07-06T07:49:46Z")

</div>

Can you expand on your question? I’m not sure I follow. Seeing only the data visible to a party is a privacy feature intrinsic in DAML. All the Extractor does is using the Ledger API to expose one’s data on a relational database. What would you like to be able to do with Extractor?

---

<div class="post-metadata">

**Author:** ![Nishchal\_Vashisht](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nishchal_vashisht/32/362_2.png) [@Nishchal\_Vashisht](https://forum.canton.network/u/Nishchal_Vashisht)\
**Post date:** [July 6, 2020, 7:53am UTC](https://forum.canton.network/t/benefit-of-extractor/793/3 "2020-07-06T07:53:10Z")

</div>

I read in docs that extractor is useful for -

- **Business analysts** to analyze ledger data and create reports

how it is going to be useful when we can extract only single person data.

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [July 6, 2020, 7:58am UTC](https://forum.canton.network/t/benefit-of-extractor/793/4 "2020-07-06T07:58:17Z")

</div>

It depends on what you mean by “single person”. Extractor asks data on behalf of a party and reads all data _visibile_ to the party. This means that the privacy guarantees of DAML are preserved as Extractor reads data via the Ledger API. If you want to do large scale analysis, you would need to be some form of market intermediary party that is (consensually with other parties via agreed-upon smart contracts) able to see a large chunk of data. In any other situation seeing more data than the one visible to one’s party would be a violation of DAML’s privacy guarantees.

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [July 6, 2020, 8:01am UTC](https://forum.canton.network/t/benefit-of-extractor/793/5 "2020-07-06T08:01:47Z")

</div>

Note that the extractor _can_ also subscribe to the ledger as multiple parties:

```shell
  --party <value> The party or parties whose contract data should be extracted.
                           Specify multiple parties separated by a comma, e.g. Foo,Bar

```

---

<div class="post-metadata">

**Author:** ![Nishchal\_Vashisht](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nishchal_vashisht/32/362_2.png) [@Nishchal\_Vashisht](https://forum.canton.network/u/Nishchal_Vashisht)\
**Post date:** [July 6, 2020, 8:03am UTC](https://forum.canton.network/t/benefit-of-extractor/793/6 "2020-07-06T08:03:55Z")

</div>

I think in this case i must have all party jwt keys ?

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [July 6, 2020, 8:08am UTC](https://forum.canton.network/t/benefit-of-extractor/793/7 "2020-07-06T08:08:47Z")

</div>

Yes, of course, you can only extract the data for parties which you have access to. But say you wanted to create a report on all accounts that you manage, you could use the extractor to dump all ledger data into a pSQL database and then query that.
