friendica/doc/database
Esko Arajärvi 25bb9b12c1 Faster count queries when updating the info about current node
MySQL optimiser seems to prefer a full table scan of `post-user`
table in the count query mentioned in issue #14763. When the origin
and deleted columns are added to the index, the IN-query part of
the query can be done with index-only scan, which is much faster.

Adding the columns in the order

    uri-id, origin, deleted

allows some other queries to also use it when checking
for uri-id and origin.

Fixes #14763
2025-02-04 19:47:31 +02:00
..
db_2fa_app_specific_password.md
db_2fa_recovery_codes.md
db_2fa_trusted_browser.md
db_account-suggestion.md
db_account-user.md
db_apcontact.md Issue 14377: Support for "postingRestrictedToMods" added 2024-08-20 05:58:24 +00:00
db_application-marker.md
db_application-token.md
db_application.md
db_arrived-activity.md
db_attach.md
db_cache.md
db_channel.md
db_check-full-text-search.md
db_config.md
db_contact-relation.md
db_contact.md OStatus support removed 2024-09-11 03:44:40 +00:00
db_conv.md
db_conversation.md
db_delayed-post.md
db_delivery-queue.md
db_diaspora-contact.md
db_diaspora-interaction.md
db_endpoint.md
db_event.md
db_fetch-entry.md
db_fetched-activity.md
db_fsuggest.md
db_group.md
db_group_member.md
db_gserver-tag.md
db_gserver.md
db_hook.md
db_host.md
db_inbox-entry-receiver.md
db_inbox-entry.md Store the context as a separate field 2024-07-16 20:09:08 +00:00
db_inbox-status.md
db_intro.md
db_item-uri.md
db_key-value.md
db_locks.md
db_mail.md
db_mailacct.md
db_manage.md
db_notification.md
db_notify-threads.md
db_notify.md
db_oembed.md
db_openwebauth-token.md
db_parsed_url.md
db_pconfig.md
db_permissionset.md
db_photo.md
db_post-activity.md
db_post-category.md
db_post-collection.md
db_post-content.md
db_post-counts.md
db_post-delivery-data.md OStatus support removed 2024-09-11 03:44:40 +00:00
db_post-delivery.md
db_post-engagement.md
db_post-history.md
db_post-link.md
db_post-media.md Delete unused media attachments 2024-08-24 17:40:25 +00:00
db_post-origin.md
db_post-question-option.md
db_post-question.md
db_post-searchindex.md
db_post-tag.md
db_post-thread-user.md Store the context as a separate field 2024-07-16 20:09:08 +00:00
db_post-thread.md Store the context as a separate field 2024-07-16 20:09:08 +00:00
db_post-user-notification.md
db_post-user.md Faster count queries when updating the info about current node 2025-02-04 19:47:31 +02:00
db_post.md Fetch replies to fetched posts 2024-06-26 08:33:07 +00:00
db_process.md
db_profile.md
db_profile_field.md
db_register.md
db_report-post.md
db_report-rule.md
db_report.md
db_search.md
db_session.md
db_storage.md
db_subscription.md
db_tag.md
db_user-contact.md OStatus support removed 2024-09-11 03:44:40 +00:00
db_user-gserver.md
db_user.md OStatus support removed 2024-09-11 03:44:40 +00:00
db_userd.md
db_verb.md
db_worker-ipc.md
db_workerqueue.md