Performance patch (notifications 5.x-dev)

Jose Reyero - November 3, 2008 - 17:23
Project:Organic Group settings
Version:5.x-1.0
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:closed
Description

This is a performance patch that works with the latest version of notifications 5.x. It has two parts:

- Better query fields for _notifications('query'), will replace the table join by a simple IN(gid1, gid2...) condition.

- New _notifications('subscription fields') op implemented, this does nothing for now, but will provide some useful metadata to the Notifications engine so we can add new performance improvements in the future.

As stated, this needs latest notifications-dev to work. If the testing is successful I'll be releasing one more notifications stable version to work with this.

#1

Jose Reyero - November 3, 2008 - 17:42
Status:active» needs review

Forgot the patch, sorry :-(

AttachmentSize
og_notifications_performance.patch 1.36 KB

#2

moshe weitzman - November 3, 2008 - 19:21
Status:needs review» patch (to be ported)

Actually, needs port to 6

#3

moshe weitzman - November 3, 2008 - 19:23
Project:Organic groups» Organic Group settings
Version:5.x-7.3» 5.x-1.0
Component:og_notifications» Code

Committed. Will deploy now to groups.drupal.org

#4

moshe weitzman - November 3, 2008 - 19:37

Deployed. Submitting a new comment went down to 6ms from 82 seconds. Thats several orders of magnitude. Thanks Jose.

#5

Zen - November 5, 2008 - 07:13

subscribe

#6

ajayg - December 2, 2008 - 22:25

Since it is already deployed at g.d.o why not consider this as reviewed by community and commit to 5.x version first. It can be ported to 6.x later.

#7

Zen - February 9, 2009 - 19:15

José: Please read http://drupal.org/node/331292#comment-1230089 . Although Notifications 5.x.1.2 was released a couple of weeks after this patch, I'm not sure if the corresponding patches went through.

Please also comment on whether this is required for D6 at all apropos your recent query builder patch. This patch has been committed to OG 5-3 already.

-K

#8

Jose Reyero - April 23, 2009 - 00:16
Status:patch (to be ported)» closed

Yes, this was in the Notifications 5.x.1.2 and it's already in 6.x

Let me know if we need anything else.

About 6.x version, please: #439096: Notification for the post targeted to more than one OG group does not get into queue

 
 

Drupal is a registered trademark of Dries Buytaert.