DocumentStore.DatabaseCommands.GetStatistics().CountOfIndexes doesn't include any ResultTransformers?

18 views
Skip to first unread message

Justin A

unread,
Sep 23, 2014, 5:23:22 AM9/23/14
to rav...@googlegroups.com
Hi folks,

The three common ways to get a ResultTransformer into the DocumentStore are :-

1) scan assemblies
2) new MyResultTransformer().Execute(documentStore);
3) IndexCreation.CreateIndexes(
   new CompositionContainer(new TypeCatalog(indexesAndResultTransformers)), documentStore);

Because of the 3rd way using CreateIndexes, I assumed that I can then get a Count of the ResultTransformers via the DocumentStore.DatabaseCommands.GetStatistics().CountOfIndexes but when I check that value, it does not include the ResultTransformers.

Is this the way to check how many ResultTransformers have been 'executed' ?

-J-

Oren Eini (Ayende Rahien)

unread,
Sep 23, 2014, 5:24:49 AM9/23/14
to ravendb
Result Transformers aren't indexes.

I think you'll have to check by loading them all, I don't believe this is really exposed.

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 



-J-

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Justin A

unread,
Sep 23, 2014, 5:47:19 AM9/23/14
to rav...@googlegroups.com

Result Transformers aren't indexes.

Ah ok - the CreateIndexes method caught me out / was misleading then :P

Justin A

unread,
Sep 23, 2014, 8:27:35 AM9/23/14
to rav...@googlegroups.com
Could we request this metric to be added to v3 please?

Oren Eini (Ayende Rahien)

unread,
Sep 23, 2014, 8:36:09 AM9/23/14
to ravendb

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Tue, Sep 23, 2014 at 3:27 PM, Justin A <jus...@adler.com.au> wrote:
Could we request this metric to be added to v3 please?

--
Reply all
Reply to author
Forward
0 new messages