Git Product home page Git Product logo

isucon9-qualify's People

Contributors

chigichan24 avatar k5342 avatar

Watchers

 avatar  avatar  avatar

isucon9-qualify's Issues

/users/transaction.json is too slow

TOP 37 Slow Requests
 1  6.980  GET /users/transactions.json HTTP/1.1
 2  6.842  POST /initialize HTTP/1.1
 3  5.664  GET /users/transactions.json HTTP/1.1
 4  5.635  GET /users/transactions.json HTTP/1.1
 5  5.609  GET /users/transactions.json HTTP/1.1
 6  5.407  GET /users/transactions.json HTTP/1.1
 7  5.349  GET /users/transactions.json HTTP/1.1
 8  5.348  GET /users/transactions.json HTTP/1.1
 9  5.307  GET /users/transactions.json HTTP/1.1
10  5.247  GET /users/transactions.json HTTP/1.1
11  5.237  GET /users/transactions.json HTTP/1.1
12  5.207  GET /users/transactions.json HTTP/1.1
13  5.192  GET /users/transactions.json HTTP/1.1
14  5.027  GET /users/transactions.json HTTP/1.1
15  5.026  GET /users/transactions.json HTTP/1.1
16  4.825  GET /users/transactions.json HTTP/1.1
17  4.804  GET /users/transactions.json HTTP/1.1
18  4.672  GET /users/transactions.json HTTP/1.1

IN (?, ?, ?, ...

db.xquery("SELECT * FROM `items` WHERE (`seller_id` = ? OR `buyer_id` = ?) AND `status` IN (?, ?, ?, ?, ?) AND (`created_at` < ? OR (`created_at` <= ? AND `id` < ?)) ORDER BY `created_at` DESC, `id` DESC LIMIT #{TRANSACTIONS_PER_PAGE + 1}", user['id'], user['id'], ITEM_STATUS_ON_SALE, ITEM_STATUS_TRADING, ITEM_STATUS_SOLD_OUT, ITEM_STATUS_CANCEL, ITEM_STATUS_STOP, Time.at(created_at), Time.at(created_at), item_id)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.