Re: pgbench stats per script & other stuff

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgbench stats per script & other stuff
Дата
Msg-id CA+TgmoaMV1yF1qEyfba0XwqEPCpMJzD2nTS+XcUVyS-mo1RddA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgbench stats per script & other stuff  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: pgbench stats per script & other stuff  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Wed, Sep 2, 2015 at 2:20 PM, Fabien COELHO <coelho@cri.ensmp.fr> wrote:
>> I'm wondering if percentages instead of weights would be a better
>> idea. That'd mean you'd be forced to be more careful when adding another
>> script (having to adjust the percentages of other scripts) but arguably
>> that's a good thing?
>
> If you use only percent, then you have to check that the total is 100,
> probably you have to use floats, to do something when the total is not 100,
> checking would complicate the code and test people mental calculus
> abilities. Not sure this is a good idea:-)

I agree.  I don't see a reason to enforce that the total of the
weights must be 100.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Horizontal scalability/sharding
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Horizontal scalability/sharding