Pierangelo Masarati wrote:
There were no changes between 2.2.15 and 2.2.17; there are lots of
changes
between 2.2.17 and HEAD; at a first glance there's not much that should
impact performances. There's a small issue, I had to change the way
schema mapping is looked up; at some point it was done by comparing
pointers, but that made tests not portable because attribute ordering in
the results was machine or even run-time dependent; so I made it default
to strcmp based. I haven't noticed significant performance impact,
but I
never used very large databases. You can revert to the old behavior by
recompiling back-sql (actually, all you need to recompile is
schema-map.c)
with -DBACKSQL_USE_PTR_CMP (see the comment at the beginning of
schema-map.c).
This may (and will) cause sql-test* fail because the results are not
ordered as in the reference.
Anybody please holler if you find a better way to sort results in a
better
way...
p.
Hi,
I've done a bit of digging and it seems the difference is in the way
the candidate list is constructed. The new query is much much slower
than the new one (by a large amount), I guess that the (maybe overly
redundant) phrase 'ldap_entries.id=ldap_entry_objclasses.entry_id and'
helps the query optimizer in postgres a lot....
If it doesn't make any differnce to you, I guess I liked the
performance of the old query a lot better.