Sorry for late response - was busy with different issues. Had time to
investigate it a little bit more.
The picture is the following:
WaitForNonStaleResults
Still needed for me even with build #189. Steps to reproduce it -
1. Create domain object and then save it then, call:
session.SaveChanges();
2. Try to get list of all objects without WaitForNonStaleResults - the
object won't appear.
I suppose because beckground thread is not finished yet.
On 19 okt., 20:05, Chris Marisic <
ch...@marisic.com> wrote:
> Unless you found an extremely large bug what you're stating that's
> occurring shows you must be doing something that causes raven to
> reindex stuff such as inserting new documents, or creating new
> indexes. It seems most likely that your code is forcing the index to
> be created which is why you get no results unless you do wait for
> nonstale results.
>
> On Oct 18, 2:34 am, Erik <
erikf...@gmail.com> wrote:
>
>
>
> > Maybe I got that wrong, but what I'm trying to achieve is to create
> > small scheduler application with
> > the list of appointments which retrieved on the startup time. Without
> > WaitForNonStateRsults*
> > I always get the empty list of appointments - so I don't see other
> > ways how not to useWaitForNonStaleResults/
> > WaitForNonStaleResultsAsOfNow.
> > Did I miss anything?
>
> > Thanks!
>
> > On Oct 18, 9:16 am, Ayende Rahien <
aye...@ayende.com> wrote:
>
> > >WaitForNonStaleResultsis the one that isn't recommended.
> > > WaitForNonStaleResultsAsOfNow is useful when you need current results, but
> > > you should also consider when you can skip that.
>
> > > On Mon, Oct 18, 2010 at 7:15 AM, Erik <
erikf...@gmail.com> wrote:
> > > > Thanks! Can you clarify it a little bit more? Is it not recommended to
> > > > useWaitForNonStaleResults/WaitForNonStaleResultsAsOfNow or just
> > > > onlyWaitForNonStaleResults- because otherwise I get empty result
> > > > set.
>
> > > > On Oct 17, 11:28 pm, Ayende Rahien <
aye...@ayende.com> wrote:
> > > > > Session.Query<Foo>().Customize(x=>x.WaitForNonStaleResults())
>
> > > > > Please note that it isn't recommended to use this.
> > > > > At a minimum, use WaitForNonStaleResultsAsOfNow
>
> > > > > On Sun, Oct 17, 2010 at 9:31 PM, Erik <
erikf...@gmail.com> wrote:
> > > > > > Hi,
>
> > > > > > I'm using RavenDB as embedded DB and noticed that I can't use
> > > > > > Session.Query<T> because of the problem
> > > > > > that stale object is not returned. That means that everytime I have to
> > > > > > call "LuceneQuery" withWaitForNonStaleResults. So my question is the
> > > > > > following, instead of writing each time:
>
> > > > > > return
>
> > > > Session.Advanced.LuceneQuery<Appointment>("AppointmentsWithRepeatersAll")
> > > > > > .WaitForNonStaleResults()
> > > > > > .ToList()
>
> > > > > > Can I somehow specify that:
>
> > > > > > return
> > > > > > Session.Query<Appointment>("AppointmentsWithRepeatersAll")
> > > > > > .ToList()
>
> > > > > > sould be withWaitForNonStaleResults?
>
> > > > > > Thanks in advance- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Paslēpt citēto tekstu -
>
> - Rādīt citēto tekstu -