erp5_discussion: speed up retrieval of discussion posts from a web section
WebSection.getDocumentValueList() returns absolutely all the documents (as catalog brains) reachable by the web section. Then, calling .getUid() on them load all the objects in memory. The number of documents is of the order of hundreds, even on a small ERP5 (web pages, web scripts, etc.). Limit the documents to retrieve in WebSection_getLatestDiscussionPostList by filtering on the portal_type, and do not load them needlessly in memory.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#705596
external
|
ERP5.CodingStyleTest-Master |
00:56:37
|
||||||
passed |
#705538
external
|
ERP5.CodingStyleTest-TestRunner1 |
00:56:35
|
||||||
failed |
#705597
external
|
ERP5.PerformanceTest-Master |
00:35:24
|
||||||
failed |
#705540
external
|
ERP5.PerformanceTest-TestRunner1 |
00:35:03
|
||||||
passed |
#705595
external
|
ERP5.UnitTest-Master |
01:55:23
|
||||||
passed |
#705539
external
|
ERP5.UnitTest-TestRunner1 |
01:31:15
|
||||||
passed |
#705657
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:24:15
|
||||||
passed |
#705586
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
02:01:17
|
||||||
passed |
#705592
external
|
Wendelin.UnitTest-Master |
00:35:56
|
||||||