Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Possible to disable dynamic index creation?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 36 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ken Dale  
View profile   Translate to Translated (View Original)
 More options Jul 9 2012, 3:53 pm
From: Ken Dale <k...@kendaleiv.com>
Date: Mon, 9 Jul 2012 12:53:57 -0700 (PDT)
Local: Mon, Jul 9 2012 3:53 pm
Subject: Possible to disable dynamic index creation?

Is it possible to disable dynamic index creation and throw an exception if
a dynamic index must be created to fulfill a query? Is there some way to
accomplish this with the configuration settings here:
http://ravendb.net/docs/server/administration/configuration ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Warren  
View profile   Translate to Translated (View Original)
 More options Jul 9 2012, 4:51 pm
From: Matt Warren <mattd...@gmail.com>
Date: Mon, 9 Jul 2012 21:51:43 +0100
Local: Mon, Jul 9 2012 4:51 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

I don't know about a global option but if you explicitly specify an index
name it will not use/create a dynamic index

session.Query<T>("index_name")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 1:28 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 10 Jul 2012 08:28:59 +0300
Local: Tues, Jul 10 2012 1:28 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Currently,no.
Can you explain why you want to do this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 9:09 am
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 06:09:35 -0700 (PDT)
Local: Tues, Jul 10 2012 9:09 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Total control over indexes, i never want an index randomly created in
production. I'd rather it fail, than compile a whole index.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 9:24 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 10 Jul 2012 16:24:00 +0300
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Can you create an issue for this?
It is a more complex feature than you think, it requires us to have hooks
into query optimizer so that we can report errors.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 9:36 am
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 06:36:03 -0700 (PDT)
Local: Tues, Jul 10 2012 9:36 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

http://issues.hibernatingrhinos.com/issue/RavenDB-416


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kijana Woodard  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 9:41 am
From: Kijana Woodard <kijana.wood...@gmail.com>
Date: Tue, 10 Jul 2012 08:41:13 -0500
Local: Tues, Jul 10 2012 9:41 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Wouldn't/shouldn't this be caught in QA? Run through all automated and
manual tests. Dynamic index count should be zero.

If I didn't catch in QA, i'd rather get a warning, if anything, rather than
blow up production. My wager would be that- if it was missed by QA, the
dynamic index would be in something with lower impact which wouldn't cause
too many problems.
On Jul 10, 2012 8:09 AM, "Chris Marisic" <ch...@marisic.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jul 10 2012, 9:49 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 10 Jul 2012 16:49:14 +0300
Local: Tues, Jul 10 2012 9:49 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Kijana,
There are scenarios where you want to fail rather than create a new index.
I can't think of one off hand, but I am sure there are :-)

On Tue, Jul 10, 2012 at 4:41 PM, Kijana Woodard <kijana.wood...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kijana Woodard  
View profile  
 More options Jul 10 2012, 9:53 am
From: Kijana Woodard <kijana.wood...@gmail.com>
Date: Tue, 10 Jul 2012 08:53:46 -0500
Local: Tues, Jul 10 2012 9:53 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

:-)

Perhaps. But turning on a flag that means, "shut down production if this
happens anywhere in the app" would give me more than a little pause. Lol.
On Jul 10, 2012 8:49 AM, "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kijana Woodard  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 9:59 am
From: Kijana Woodard <kijana.wood...@gmail.com>
Date: Tue, 10 Jul 2012 08:59:31 -0500
Local: Tues, Jul 10 2012 9:59 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Hmmm. I suppose it would just affect the particular query/business function
without the index, but that's a pretty nasty way to find out your QA
process has holes. And you'd better have a pretty fast launch process to
get the fix out there. Angry execs. Haha.
On Jul 10, 2012 8:53 AM, "Kijana Woodard" <kijana.wood...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Itamar Syn-Hershko  
View profile  
 More options Jul 10 2012, 10:18 am
From: Itamar Syn-Hershko <ita...@hibernatingrhinos.com>
Date: Tue, 10 Jul 2012 17:18:33 +0300
Local: Tues, Jul 10 2012 10:18 am
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

In those cases, I'd suggest going the route Matt suggested - make queries
to named indexes, never rely on the query optimizer

On Tue, Jul 10, 2012 at 4:49 PM, Oren Eini (Ayende Rahien) <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 12:17 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 09:17:11 -0700 (PDT)
Local: Tues, Jul 10 2012 12:17 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Unfortunately this statement does not seem to be sufficient Itamar. We
analyzed our code base and do not have a single usage of a query call for a
non-specified index. We have temp indexes that are created even when static
ones include all of the fields that the temp indexes are created for. We
have been able to produce this 100% consistently in our code base for
indexes that have transform results, however we have not been able to
reproduce this occurrence outside of our solution to submit a failing test.
So far the only thing we've been able to come up with is to set
Raven/TempIndexPromotionMinimumQueryCount to 1 so atleast the indexes don't
disappear.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Warren  
View profile  
 More options Jul 10 2012, 12:22 pm
From: Matt Warren <mattd...@gmail.com>
Date: Tue, 10 Jul 2012 09:22:46 -0700 (PDT)
Local: Tues, Jul 10 2012 12:22 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

That sound like a bug, my understanding was that the query optimiser is
only used if you *don't* explicitly specify an index.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Itamar Syn-Hershko  
View profile  
 More options Jul 10 2012, 12:31 pm
From: Itamar Syn-Hershko <ita...@hibernatingrhinos.com>
Date: Tue, 10 Jul 2012 19:31:15 +0300
Local: Tues, Jul 10 2012 12:31 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Does this involve range queries? we had a bug that could have caused this
that we fixed

What build are you using?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 12:40 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 09:40:45 -0700 (PDT)
Local: Tues, Jul 10 2012 12:40 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

No range queries, stable 960, the indexes it creates are dead simple:

from doc in docs.Things
select new { Created = doc.Created }

Field: Created Storage: No Indexing Default Sort String

In all of our static indexes Created is in the map statement (Created is a
DateTime) however it doesn't display in the fields list. We also tried
numerous combinations of Store/Index/Sorting settings and it would happen
regardless, however once we took away the TransformResults it would work as
expected, but that isn't really an option as it's needed.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Warren  
View profile  
 More options Jul 10 2012, 12:52 pm
From: Matt Warren <mattd...@gmail.com>
Date: Tue, 10 Jul 2012 09:52:14 -0700 (PDT)
Local: Tues, Jul 10 2012 12:52 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

There was a bug/issue raised a while ago where indexes were rebuit when all
that had changed was the TransformResults (whereas it didn't need to be
rebuilt).

Could this be related to that?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 1:07 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 10:07:42 -0700 (PDT)
Local: Tues, Jul 10 2012 1:07 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

When tracing this through server logging we see it specifically queries the
named index, then immediately says "creating new temp index" and then says
querying the temp index.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Warren  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 1:26 pm
From: Matt Warren <mattd...@gmail.com>
Date: Tue, 10 Jul 2012 10:26:29 -0700 (PDT)
Local: Tues, Jul 10 2012 1:26 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

That's wierd, see the code here
https://github.com/ayende/ravendb/blob/1.2/Raven.Database/Server/Resp...

If should use an existing index unless your indexes happen to start with
"dynamic/"?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 1:51 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 10:51:43 -0700 (PDT)
Local: Tues, Jul 10 2012 1:51 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

The index does not start with the name dynamic, it queries the static index
and then decides it's going to create the temp index anyway.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 1:57 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 10 Jul 2012 20:57:28 +0300
Local: Tues, Jul 10 2012 1:57 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Chris,
TransformResults tells RavenDB to avoid using this index, because the
output is different than what the user may expect.
Thinking about this, we can probably use this anyway, just skip the
transform results.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 2:22 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 11:22:46 -0700 (PDT)
Local: Tues, Jul 10 2012 2:22 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

I'm confused by this statement. We're using the TransformResults for the
most standard reason so instead of showing:

Book           | Author
Harry Potter | authors/1
Twilight        | authors/2

That we can show a list that uses names not ids.

Book           | Author
Harry Potter | Witch lady
Twilight        | World's worst author

We are reading from the results of the index with the query using As<>
because we only want the values from the index not full documents.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jul 10 2012, 4:35 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 10 Jul 2012 23:35:40 +0300
Local: Tues, Jul 10 2012 4:35 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Chris,
We just added three new features:

* Transform Results no longer prevent an index from being selected as the
target of a dynamic query
* You can now ask RavenDB why it selected a particular index:
localhost:8080/indexes/dynamic/Companies?query=Name:Northwind*&explain=true *
** *We have a new config option:
Raven/CreateTemporaryIndexesForAdHocQueriesIfNeeded

Which you can set to false


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 5:14 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 14:14:37 -0700 (PDT)
Local: Tues, Jul 10 2012 5:14 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

On Tuesday, July 10, 2012 4:35:40 PM UTC-4, Oren Eini wrote:

> Chris,
> We just added three new features:

> localhost:8080/indexes/dynamic/Companies?query=Name:Northwind*
> &explain=true*

Does this only work on the /dynamic/ address? or will this work on any
query request?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Itamar Syn-Hershko  
View profile  
 More options Jul 10 2012, 6:21 pm
From: Itamar Syn-Hershko <ita...@hibernatingrhinos.com>
Date: Wed, 11 Jul 2012 01:21:38 +0300
Local: Tues, Jul 10 2012 6:21 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Any query request that is issued without a named index


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Marisic  
View profile  
 More options Jul 10 2012, 10:56 pm
From: Chris Marisic <ch...@marisic.com>
Date: Tue, 10 Jul 2012 19:56:52 -0700 (PDT)
Local: Tues, Jul 10 2012 10:56 pm
Subject: Re: [RavenDB] Possible to disable dynamic index creation?

Well that's the problem, these requests ARE issued to a named index, yet
they still end up on the dynamic.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 36   Newer >
« Back to Discussions « Newer topic     Older topic »