isucon5-qualify's Introduction
CAUTION: this project is open for only #isucon administrators /webapp /webapp/perl /webapp/ruby /webapp/nodejs /tools /tools/benchmark /tools/domchecker /tools/scoreboard ** Webアプリの基本方針 -処理はすべてリクエストを受け取ってから実施する --DBへのクエリ --テンプレートからのレンダリング -全てのコンテンツをアプリケーションから渡す --js/css/画像も含めて -キャッシュ等はとりあえず全て無し ** 実装するリクエストハンドラ - / -- GET -- articleのリスト(投稿順(id順) 最新10個) --- SELECT id,title,body,created_at FROM article ORDER BY id DESC LIMIT 10 - /article/:articleid -- GET -- articleページの表示 (article + comments) --- SELECT id,title,body,created_at FROM article WHERE id=? --- SELECT name,body,created_at FROM comment WHERE article=? ORDER BY id なお全ページ、左側のサイドバーに「新しいコメントがついた順に記事10件」を表示 --- SELECT article FROM comment GROUP BY article ORDER BY created_at DESC LIMIT 10 - /post -- GET -- 記事投稿用HTML ただしベンチ対象外のURLとする - /post -- POST -- 記事投稿 -- パラメータはform形式で title, body --- INSERT INTO article SET ... -- レスポンスは / へのリダイレクト(成功)、もしくは適当なエラー用のHTTPステータス - /comment/:articleid -- POST -- コメント投稿 (投稿フォームは /article/:articleid の末尾) -- パラメータはform形式で name, body --- INSERT INTO comment SET ... -- レスポンスは /article/:articleid へのリダイレクト(成功)、もしくは適当なエラー用のHTTPステータス ** 添付するstaticファイル - 画像 -- isuconロゴを適当なサイズにして流用、ページトップのバナー画像にする - js -- jquery 最新版の minify 済みファイル -- jquery-ui 最新版の minify 済みファイル -- isucon.js デザイン調整用 - css -- jquery-ui の適当なスタイル用のもの一式 -- isucon.css デザイン調整用
isucon5-qualify's People
Forkers
matsuu anoworl kamipo karupanerura takuti yasuharu519 masa0221 sorah ackintosh satoshun-example yuki2006 sux2mfgj mikoim keigo-brook hamadu inosy22 adachic sakairyota tomueeen93 megumish rasbora mukai-yuichiro-ab yucchiy sharonosullivan at-grandpa hiroshi-yachi g0tiu5a kur00 mactkg cocodrips akawashiro ponyopoppo haijima masaki-yamakawa nagao-owlisucon5-qualify's Issues
「友だちリストに友だちになったばかりのユーザが表示されていません」と出てしまう
昨年のisuconの復習として活用させていただいております。
"violations" : [ {
"type" : "CHECK LEFT FOOTPRINTS OF OTHERS",
"description" : "友だちリストに友だちになったばかりのユーザが表示されていません",
"number" : 1
}
と出るようになりました。
質問なのですが、
BootstrapChecker.javaの298行目ですが、
footprintDateは、286行目のタイミング時の時間かと思いますが、
まずfilterでfootprintDateと同じものだけ残って
user2Pathとuser3Pathだけ残して2件じゃなければエラーというものだと読みました。
この時、profileページを見ているので足跡が残りますが、user1から見るとuser2とuser3だと処理のタイミング的に1秒ずれてしまう可能性があり、それでテストが通らないのではないと思いましたが、いかがでしょうか。
(処理が高速化されていれば、確率は低くなるのだと思いますが)
また304行目のエラーメッセージも足あとに関するエラーメッセージにしたほうが良いではないかと思いますが、いかがでしょうか。
見当違いでしたら、申し訳ありません。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.