today I want to document few ways on how to modify command time out. Sometime it may happen that you have some kind of long runnig queries, and at some particular graph you may want to make it live longer.
For such purposes very convenient is PXCommandScope object. Below goes code sample that allow you to achieve this purpose:
using (new PXCommandScope(PXDatabase.Provider.DefaultQueryTimeout * 2)) // increasing 2 fold
var results = PXSelect<BAccount>.Select(this);
with such code you can get twice a time for your BQL statements.