senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Oneesan succubus (lain@pleroma.soykaf.com@pleroma.soykaf.com)'s status on Thursday, 21-Nov-2019 19:13:40 JST Oneesan succubus Oneesan succubus
    • Oneesan succubus
    apparently postgres will build different query plans for

    SELECT * from table where key = 1 or key = 2

    and

    SELECT * from table where key in (1, 2)

    source: https://www.cybertec-postgresql.com/en/avoid-or-for-better-performance/
    In conversation Thursday, 21-Nov-2019 19:13:40 JST from pleroma.soykaf.com permalink

    Attachments

    1. Avoid OR for better PostgreSQL query performance - Cybertec
      from Cybertec
      OR in the WHERE condition of a PostgreSQL database query is usually a cause of bad query performance. I examine how to rewrite queries without OR.
    • Sorokin Alexei (xrevan86@loadaverage.org)'s status on Friday, 22-Nov-2019 09:00:23 JST Sorokin Alexei Sorokin Alexei
      in reply to
      @lain I didn't know that MariaDB will in fact build the same query plans for these two queries. Had to check.
      In conversation Friday, 22-Nov-2019 09:00:23 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.