--
You received this message because you are subscribed to the Google Groups "ravendb" 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/groups/opt_out.
this.Id = await session.Advanced.DocumentStore.Conventions.GenerateDocumentKeyAsync(session.Advanced.DocumentStore.Identifier, session.Advanced.DocumentStore.AsyncDatabaseCommands, this);
[TestMethod]
public void TestIdOnStore()
{
using (var store = NewDocumentStore())
{
using (var session = store.OpenAsyncSession())
{
var account = new TestAccount(TestAccountTypes.BankAccount, "Test", "123");
session.Store(account);
System.Diagnostics.Debug.Assert(string.IsNullOrWhiteSpace(session.Advanced.GetDocumentId(account)));
}
}
}
this.Id = await realSession.Conventions.GenerateDocumentKeyAsync(realSession.DatabaseName, ((ShardedDocumentStore)realSession.DocumentStore).ShardStrategy.Shards[SourceContact.ShardLocation].AsyncDatabaseCommands, this);
I am just looking for a non-cicular answer to a simple question:How do I get a fully formed ID from a sharded database with an async session before save?
That’s all I need. What I keep getting is a circular reference pointing to one solution or another and they all have different issues that prevent them from working.Worse, the solution that should work, and does work every other way, doesn’t work in this one, which is a BUG.
When my staff does this sort of things it’s because they’re evading my question because they don’t want to answer it.I’m deciding if I’ve wasted 2 weeks of my life and time porting an app to Raven or not. If I choose not, then over the next year, Raven stands to sell to my company $100,000 worth of licenses or more. (could be easily more) And that would be recurring revenue.But I won’t risk my company on getting excuses and non-answers to questions.Tell me now if you want my business or not. If you do, then I need real answers to my issues with references, and a real answer to this question, and any others that I encounter.
If not, tell me so I can go spend my time doing something useful instead of beating my head against a wall and being rewarded with evasion.
@James Hancockrelax man, RavenDB is really great and helpful, not to mention that you are getting answers from the Creator of this software (Ayende) and he does provide great answersi am not one of the team, i am just a user, and i can tell you that RavenDB is used in big serious enterprise projects.RavenDB is so flexible and there is always a solution for a problem, if not the team will make a solution if there is a pull request, which is how any software requests implementation worksas for the licenses , well from my experience and i think others would share this too, RavenDB will save you nightmares and days of crazy SQL Server work flow, so your company and co workers will be very glad at the end.as a friendly advise just go through the manual again, and always ask here, and most defiantly you will get a satisfying answers just help the team to understand your problem and e little patiant .peace
Stepping back for a second. Is the Store method on a session really going to bottle neck your API / Web application?I always assumed the AsyncDocumentSession was for running multiple queries, which the Lazily feature of RavenDB can do as well.
On Tuesday, February 5, 2013 1:56:11 PM UTC-5, devm...@hotmail.com wrote:@James Hancockrelax man, RavenDB is really great and helpful, not to mention that you are getting answers from the Creator of this software (Ayende) and he does provide great answersi am not one of the team, i am just a user, and i can tell you that RavenDB is used in big serious enterprise projects.RavenDB is so flexible and there is always a solution for a problem, if not the team will make a solution if there is a pull request, which is how any software requests implementation worksas for the licenses , well from my experience and i think others would share this too, RavenDB will save you nightmares and days of crazy SQL Server work flow, so your company and co workers will be very glad at the end.as a friendly advise just go through the manual again, and always ask here, and most defiantly you will get a satisfying answers just help the team to understand your problem and e little patiant .peace
I was just told that this is by design and there is no work around.
Thus your statements are incorrect. I run a bank. I don’t have the luxury of waiting weeks as if it was a hobby project to get fixes or get issues addressed. Since I started testing raven, I’ve reported 9 bugs, and 3 usability issues. 4 of the bugs have been fixed. Of those 9 bugs, I was asked to create repro cases for something that was broken out of the box (i.e. the issue with getting the document ID on async.) at least 3 times thus wasting more of my time.
I was further told that I have to spend money to get support for a product that I have yet to be convinced can actually work because of known issues. Sorry but I don’t work that way nor will I allow my company to work that way.
The reality is that any marginally complex structure where documents are self-referencing etc. Raven is actually incredibly hostile, and there is no indication that Raven developers are at all interested in addressing this - They’re actually proud of their system that is less capable than essentially any other solution in most complex structures. i.e. I got told that a standard Accounting structure with contacts, accounts , journal entries and transactions was complex, even though it was the second thing after a task manager that people tried to solve using computers back with 2 k of memory. My personal favorite was when I was told to store millions of journal entries and hundreds of accounts in a single document with a contact, and then told that I was doing it wrong when I asked how the transaction could then go and reference the journal entries it created.
I have been more than patient.
I’ve spun questions around a thousand different ways. I’ve endured the “You’re a stupid RDMS guy, go read the docs again and try and get your head out of your A$$” comments like below over and over again, and when asked what I’m doing wrong with my structure, no one can or would give me an answer on what I was doing wrong.