Skip to content

Fork Sync Branch 18.0 - #30

Merged
btl-bot merged 5 commits into
BTLzdravtech:18.0from
ingadhoc:18.0
Nov 12, 2026
Merged

btl-bot merged 5 commits into
BTLzdravtech:18.0from
ingadhoc:18.0

Conversation

@btl-bot

@btl-bot btl-bot commented Nov 12, 2026

Copy link
Copy Markdown

No description provided.

vib-adhoc and others added 5 commits November 5, 2026 14:45
Translations are no longer synced through Weblate or Transifex,
so nothing installs these modules anymore.

closes #495

Signed-off-by: Andrés Zacchino <az@adhoc.inc>
Upstream channel_fetched resolves the whole message_ids of the channel to
keep its first id. The browser calls it on every new message in a chat,
from every open tab of every member, so on chats with tens of thousands
of messages it becomes the main SQL cost of the database.

Search the last message with the message_ids domain and limit=1, as the
current user, and check the channel type before reading anything.

closes #501

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
- Create gin trigram indexes on unaccent(name), complete_name, email, ref
  and vat of res.partner from init(), so ILIKE '%term%' in name_search
  stops scanning the whole table
- Use own index names next to the core btree indexes: declaring
  index="trigram" on the fields would make the registry drop the btree
  and rebuild it as gin without CONCURRENTLY, and the btree serves "="
- Only create them when the system parameter
  saas_feature.partner_search_trigram_index is on, so the rollout goes
  database by database; the indexes are built on the next -u of the module
- Skip creation when pg_trgm is missing or unaccent is not IMMUTABLE
- Bump version to 18.0.4.1.0

Change note: Búsqueda de contactos más rápida en bases con muchos contactos (se habilita por base)

closes #505

Related: ingadhoc/partner#160
Signed-off-by: Andrés Zacchino <az@adhoc.inc>

@sireko sireko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot
btl-bot merged commit 63a8101 into BTLzdravtech:18.0 Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants