This commit is contained in:
@@ -6,11 +6,20 @@
|
||||
MISC ITEMS THAT CAME UP
|
||||
|
||||
todo: large number of units = timeout on list view
|
||||
this query:
|
||||
this query painfully slow and times out with huge data:
|
||||
SELECT COUNT(*) from aunit left outer join acustomer on (aunit.customerid=acustomer.id) left outer join aunit as aparentunit on (aunit.parentunitid=aunit.id) left outer join aunitmodel on (aunit.unitmodelid=aunitmodel.id) left outer join avendor on (aunit.purchasedfromvendorid=avendor.id) left outer join aunit as areplacedbyunit on (aunit.replacedbyunitid=aunit.id)
|
||||
Figure it out
|
||||
|
||||
This query:
|
||||
SELECT COUNT(*) from aunit
|
||||
left outer join acustomer on (aunit.customerid=acustomer.id)
|
||||
left outer join aunit as aparentunit on (aunit.parentunitid=aunit.id and aunit.parentunitid<>null)
|
||||
left outer join aunitmodel on (aunit.unitmodelid=aunitmodel.id)
|
||||
left outer join avendor on (aunit.purchasedfromvendorid=avendor.id)
|
||||
left outer join aunit as areplacedbyunit on (aunit.replacedbyunitid=aunit.id and aunit.replacedbyunitid<>null)
|
||||
Super fast no timeout
|
||||
|
||||
todo: Join filters make a huge difference in speed of datalist queries (and anything else when working with huge data)
|
||||
check into all datalist and picklist queries with joins at the server and if the joined table is optional (foreign key null possibility) then add a join condition
|
||||
|
||||
todo: Notification at server has NotifyDeliveryLog object unused and no UI at from for it either
|
||||
it's supposed to keep a set queue of the past 90 days of deliveries for troubleshooting like in v7,
|
||||
|
||||
Reference in New Issue
Block a user