ironcev / Pragmatic

[The description is yet to come]
5 stars 3 forks source link

Database specific options in standard queries #3

Open hudo opened 10 years ago

hudo commented 10 years ago

We need ability to provide database specific options in standard queries GetOne and GetAll. For example, in RavenDb there's an option to Wait for non state results, because otherwise query can return null even data is in Db but not indexed yet. Also, NHibernate (and EF) has .Future() flag that is very important for perf optimization.
But until we figure out good design for this feature, WaitForNonStaleResults should be added to Ravendb standard queries, to avoid weird errors. Small perf decrease is acceptable for now, IMHO.