eos icon indicating copy to clipboard operation
eos copied to clipboard

Defer assigning sender_id until _apply_cycle_trace

Open moskvanaft opened this issue 8 years ago • 2 comments

Current code uses DBAPI to get auto-incremented sender_id for delayed transactions (apply_context::get_next_sender_id). This creates contention on the singleton that contains previous sender_id between all threads in future parallel version of EOS (the code uses one table/row for all delayed transaction of all users).

Instead of that deferred transaction should be created with sender_id == 0 (in chain_controller::_push_transaction) and later _apply_cycle_trace should check if sender_id ==0 and use upper_bound to figure out next id.

moskvanaft avatar Apr 02 '18 19:04 moskvanaft

@moskvanaft is this done?

andriantolie avatar Jul 03 '18 09:07 andriantolie

This is no longer relevant.

moskvanaft avatar Jul 03 '18 13:07 moskvanaft