8 Commits

Author SHA1 Message Date
Klaas van Schelven
7f831f52d4 Remove DIGEST_IMMEDIATELY option
Although DIGEST_IMMEDIATELY=True is theoretically a nice thing to
have, the upkeep is not worth it now that we're about to introduce
minidump ingestion.

The only thing that you're saving is the round-trip via the filesystem,
but performance of that is negligable, and if you're configuring
DIGEST_IMMEDIATELY you're actually _not_ in the performance-critical path
anyway.

Getting rid of it _also_ harmonizes/reduces the number of paths to test.

It's approximately 1% of our installed base.
2025-11-05 09:03:17 +01:00
Klaas van Schelven
d8fef759ca Add database vendor, version and machine arch to phonehome message
See #226, in the context of which having some idea of the number of
installations on 2.x w/ mariadb would have been very useful
2025-10-10 09:41:57 +02:00
Klaas van Schelven
d400d98a02 Add setting to enable opting out of PHONEHOME
Fixes #52
2025-03-03 09:26:06 +01:00
Klaas van Schelven
615d2da4c8 Chache stored_event_count (on Issue and Projet)
"possibly expensive" turned out to be "actually expensive". On 'emu', with 1.5M
events, the counts take 85 and 154 ms for Project and Issue respectively;
bottlenecking our digestion to ~3 events/s.

Note: this is single-issue, single-project (presumably, the cost would be lower
for more spread-out cases)

Note on indexes: Event already has indexes for both Project & Issue (though as
the first item in a multi-column index). Without checking further: that appears
to not "magically solve counting".

This commit also optimizes the .count() on the issue-detail event list (via
Paginator).

This commit also slightly changes the value passed as `stored_event_count` to
be used for `get_random_irrelevance` to be the post-evication value. That won't
matter much in practice, but is slightly more correct IMHO.
2025-02-06 16:24:25 +01:00
Klaas van Schelven
9ae6233965 Wrap 2 more BASE_URL usages with str()
In 59372aba33 a lazily evaluated BASE_URL tool was introduced.
I found 2 more cases in which BASE_URL was not "collapsed into a
string" magically by `__add__`, one of which actually causing
an `Object of type TenantBaseURL is not JSON serializable`
2025-01-30 08:52:38 +01:00
Klaas van Schelven
8cf7b006ed Phonehome comments updated: the reasons have changed
detecting production-use is no longer a reason since that's fine
2025-01-15 14:21:46 +01:00
Klaas van Schelven
78bceaaf43 phone-home 'EMAIL_BACKEND' (a signal about production-use) 2024-11-11 14:43:26 +01:00
Klaas van Schelven
0f5ac46362 Add first version of 'phone home' 2024-11-07 22:08:53 +01:00