Comments (5)
Temboz should also have a report giving stats on the top filters in the last 2 weeks
from temboz.
To identify the rules that are running amok, the following query can help:
select * from (
select rule_text, sum(case when item_loaded < julianday('2015-06-22') then 1 else 0 end) as before,
sum(case when item_loaded > julianday('2015-06-22') then 1 else 0 end) as after
from fm_rules join fm_items on item_rule_uid=rule_uid
where rule_type like '%_word' group by 1
) order by after/(before + 1) desc limit 20;
where 2015-06-22 should be replaced by whenever you deployed the Porter2 changes.
from temboz.
Better yet:
select * from (
select rule_uid, rule_type, rule_text,
sum(case when item_loaded < julianday('2015-06-22') then 1 else 0 end)
as before,
sum(case when item_loaded > julianday('2015-06-22') then 1 else 0 end)
as after
from fm_rules
join fm_items on item_rule_uid=rule_uid
where rule_type like '%_word' and rule_type not like '%exactword'
group by 1,2,3
)
order by after/(before + 1) desc
limit 20;
from temboz.
Mitigation involves:
update fm_rules set rule_type=replace(rule_type, '_word', '_exactword')
where rule_uid in (...,...,...);
from temboz.
Or:
update fm_rules set rule_type=replace(rule_type, '_word', '_exactword')
where rule_uid in (
select rule_uid from (
select rule_uid, rule_type, rule_text,
sum(case when item_loaded < julianday('2015-06-22') then 1 else 0 end)
as before,
sum(case when item_loaded > julianday('2015-06-22') then 1 else 0 end)
as after
from fm_rules
join fm_items on item_rule_uid=rule_uid
where rule_type like '%_word' and rule_type not like '%exactword'
group by 1,2,3
)
order by after/(before + 1) desc
limit 20
);
from temboz.
Related Issues (20)
- Misterious problem in Fedora 18 HOT 3
- Minimal problems with the documentation
- Help page is broken
- Traceback on settings / profiler
- HTML tag balancing breakage
- More efficient filtering HOT 2
- Reapply filters on posts released when a filter is deleted
- Tag filtering i18n
- KeyError 'url' when trying to add feed. HOT 3
- Python 3.x support
- temboz initialisation crash HOT 4
- Support Mojave Dark Mode HOT 1
- Not handling plain text containing XML-entities correctly
- Feed debug output broken
- 'pip install' does not include Sanity dependency HOT 4
- 'pip install' does not include dbop dependency HOT 1
- fts_au trigger causing "<class 'sqlite3.DatabaseError'>: database disk image is malformed" HOT 3
- Search breaks with capitalization HOT 1
- Broken images in feeds with relative URLs HOT 1
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.
from temboz.