That I know of, theres no such plural.
> since I think
> sometimes a lot of people [not referring to this email, which is
> legit--just in general] will start using substruct with little or no
> rails and/or programming background.
I think theres no problem with that.
> If they knew rails they wouldn't
> need substruct as much :) Oh wait--except I know rails and use it
> just because I'm lazy. Obviously I contradict myself :)
> :P
>
> -R
> (...)
I really didn't got your point.
What I have saw mostly is people requiring something with hurry as it
was an obligation of someone to give support instantly.
REQUIRING that (and sometimes nonsense things, just by ignorance, as
demand that the version be upgraded just because they don't know how to
deploy an application in a hosted solution) for volunteer work in my
opinion this is just stupid.
Some projects have differentiated and of course paid support plans, here
at least for now theres no such a thing.
I think that if people don't want/know how to be part of the solution at
least they can have the good sense of not be part of problem.
If that kind of collaborative work don't please some people, they can
always buy a closed product as they don't pretend/want/know how to help
anyway. Then they will not have to worry to claim for anything.
Regards.
Edmundo Valle Neto
Sincerely,
William Chow
--- On Fri, 7/25/08, DxM <xmisc...@gmail.com> wrote:
Will
--- On Sat, 7/26/08, DxM <xmisc...@gmail.com> wrote:
> From: DxM <xmisc...@gmail.com>
> Subject: [Substruct] Re: Big Issue (results in negative numbers in inventory)
> To: "substruct" <subs...@googlegroups.com>
Will
--- On Sat, 7/26/08, DxM <xmisc...@gmail.com> wrote:
> From: DxM <xmisc...@gmail.com>
> Subject: [Substruct] Re: Big Issue (results in negative numbers in inventory)
> To: "substruct" <subs...@googlegroups.com>
1. http://www.spacevatican.org/2008/6/8/dealing-with-concurrency
Regards.
Edmundo Valle Neto
DxM escreveu:
With one transaction:
Situation 1:
User1 start transaction.
Decrease quantity for each item (an exception is raised by the trigger).
Rollback.
Thats OK.
Situation 2:
User1 start transaction.
Decrease quantity for each item (no exception is raised).
Commit.
Payment fails, the order is abandoned.
Thats not OK. The quantity was decreased because of an order that will
not be finished.
That I know of, InnoDB tables doesn't support nested transactions so
wrapping the two actions makes things worse.
Situation 3:
User1 start order transaction.
User2 start order transaction.
User 1 decrease quantity for each item (no exception is raised).
User 2 decrease quantity for each item (no exception is raised).
User1 payment approved.
User2 payment approved.
User1 commit order transaction.
User2 try to commit order transaction, it fail in the items, and
everything is rolled back. But then he was already charged.
Someone? Any toughs about that? Should situation 2 be used and
unfinished orders be cleaned to give their items back to stock?
Regards.
Edmundo Valle Neto
DxM escreveu:
Edmundo Valle Neto escreveu:
Regards.
Edmundo Valle Neto
Regards.
Edmundo
patrickberkeley escreveu:
> One of my co-workers suggested a better way to take care of this would
> be to add a ledger_quantity column to the items table. Every time
> add_to_cart(_ajax) is run, the quantity would be subtracted from the
> actual product quantity then that would be stored in the ledger
> column. Shorten the session life and expire both the session and the
> ledger_quantity column at the same time (maybe 30 minutes). When no
> one has a session open, the default for the ledger_quantity is to
> equal the product's actual quantity.
>
>
> (...)
I think the fact of see the products already in a cart as unavailable
products as a totally different approach but not better or worst.
That means if I add all items to my cart nobody can buy them, it can be
used even as a "denial of service" attack? I can automate the cart
manipulation from 30 to 30 minutes and freeze your store?
Regards.
Edmundo
Then you can make it pass trough a ton of anonymous proxies :)