-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Patch 0001: I discovered that the cleanup task was not contained in a transaction, so if there were multiple expired entries, it would take a long time (and perform many disc writes) to remove them.
Patch 0002: While investigating the above, I also realized that the dataExpireTimestamp attribute (which we use as the primary search expression for expired entries) wasn't listed as an indexed attribute. This means that searches over a large sysdb database (e.g. one with enumerate = true) was significantly slower than it should be. This patch adds dataExpireTimestamp as an indexed attribute.
- -- Stephen Gallagher RHCE 804006346421761
Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/
On Fri, 28 Jan 2011 07:46:03 -0500 Stephen Gallagher sgallagh@redhat.com wrote:
Patch 0002: While investigating the above, I also realized that the dataExpireTimestamp attribute (which we use as the primary search expression for expired entries) wasn't listed as an indexed attribute. This means that searches over a large sysdb database (e.g. one with enumerate = true) was significantly slower than it should be. This patch adds dataExpireTimestamp as an indexed attribute.
Good idea, but I have 2 remarks.
1 given you are going to update the db number, why don't you squash in the relevant parts of the patch I sent a while ago to add also one level indexes ?
2. I think you should drop memberof rebuilding. That is a very expensive operation and there is nothing in your patches that requires it, as nothing is changed in the memberof plugin nor we are aware of any issue generating memberof attributes since the previous version.
Simo.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 01/28/2011 08:58 AM, Simo Sorce wrote:
On Fri, 28 Jan 2011 07:46:03 -0500 Stephen Gallagher sgallagh@redhat.com wrote:
Patch 0002: While investigating the above, I also realized that the dataExpireTimestamp attribute (which we use as the primary search expression for expired entries) wasn't listed as an indexed attribute. This means that searches over a large sysdb database (e.g. one with enumerate = true) was significantly slower than it should be. This patch adds dataExpireTimestamp as an indexed attribute.
Good idea, but I have 2 remarks.
1 given you are going to update the db number, why don't you squash in the relevant parts of the patch I sent a while ago to add also one level indexes ?
Added. Good suggestion.
- I think you should drop memberof rebuilding. That is a very
expensive operation and there is nothing in your patches that requires it, as nothing is changed in the memberof plugin nor we are aware of any issue generating memberof attributes since the previous version.
Thanks, that was a bad copy-paste from sysdb_upgrade_04().
New patches attached.
- -- Stephen Gallagher RHCE 804006346421761
Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/
On Fri, 28 Jan 2011 15:23:56 -0500 Stephen Gallagher sgallagh@redhat.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 01/28/2011 08:58 AM, Simo Sorce wrote:
On Fri, 28 Jan 2011 07:46:03 -0500 Stephen Gallagher sgallagh@redhat.com wrote:
Patch 0002: While investigating the above, I also realized that the dataExpireTimestamp attribute (which we use as the primary search expression for expired entries) wasn't listed as an indexed attribute. This means that searches over a large sysdb database (e.g. one with enumerate = true) was significantly slower than it should be. This patch adds dataExpireTimestamp as an indexed attribute.
Good idea, but I have 2 remarks.
1 given you are going to update the db number, why don't you squash in the relevant parts of the patch I sent a while ago to add also one level indexes ?
Added. Good suggestion.
- I think you should drop memberof rebuilding. That is a very
expensive operation and there is nothing in your patches that requires it, as nothing is changed in the memberof plugin nor we are aware of any issue generating memberof attributes since the previous version.
Thanks, that was a bad copy-paste from sysdb_upgrade_04().
New patches attached.
Ack.
Simo.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 02/01/2011 02:57 PM, Simo Sorce wrote:
On Fri, 28 Jan 2011 15:23:56 -0500 Stephen Gallagher sgallagh@redhat.com wrote:
New patches attached.
Ack.
Pushed to master
- -- Stephen Gallagher RHCE 804006346421761
Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/
sssd-devel@lists.fedorahosted.org