Skip to content

Commit 7b6870c

Browse files
committed
README: Images, makandra promo, repair screenshots
1 parent 07b72d6 commit 7b6870c

9 files changed

+868
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1-
Query Diet [![Tests](https://github.com/makandra/query_diet/workflows/Tests/badge.svg)](https://github.com/makandra/query_diet/actions)
2-
==========
1+
<p>
2+
<a href="https://makandra.de/">
3+
<picture>
4+
<source media="(prefers-color-scheme: light)" srcset="media/makandra-with-bottom-margin.light.svg">
5+
<source media="(prefers-color-scheme: dark)" srcset="media/makandra-with-bottom-margin.dark.svg">
6+
<img align="right" width="25%" alt="makandra" src="media/makandra-with-bottom-margin.light.svg">
7+
</picture>
8+
</a>
9+
10+
<picture>
11+
<source media="(prefers-color-scheme: light)" srcset="media/logo.light.shapes.svg">
12+
<source media="(prefers-color-scheme: dark)" srcset="media/logo.dark.shapes.svg">
13+
<img width="215" alt="Query Diet" role="heading" aria-level="1" src="media/logo.light.shapes.svg">
14+
</picture>
15+
</p>
16+
17+
[![Tests](https://github.com/makandra/query_diet/workflows/Tests/badge.svg)](https://github.com/makandra/query_diet/actions)
18+
319

420
Query Diet counts the number of database queries for the last request and *subtly* displays it in the upper right corner of your screen.
521
The display turns red if too many queries are run, or if they take too long.
622
This is useful to prevent [N + 1 queries](http://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations) from creeping into your code.
723

824
This is Query Diet being happy about 3 requests taking 66ms:
925

10-
![](http://blog.makandra.com/images/articles/2010-06-25-solving-the-n-1-query-problem-with-query-diet/query_diet_happy.png)
26+
![Query Diet is happy](media/query_diet_happy.png)
1127

1228
This is Query Diet being angry about 103 requests taking 164ms:
1329

14-
![](http://blog.makandra.com/images/articles/2010-06-25-solving-the-n-1-query-problem-with-query-diet/query_diet_angry.png)
30+
![Query Diet is angry](media/query_diet_angry.png)
1531

1632

1733
Installation

media/logo.dark.shapes.svg

Lines changed: 138 additions & 0 deletions
Loading

media/logo.dark.text.svg

Lines changed: 108 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)