question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FANCY_REMEMBER_ALL_URLS option and performance over time

See original GitHub issue

Are there known limitations to this option? I had enabled it to give more visibility to our system and at about ~22,000 entries, the endpoints that were being tracked stopped being functional. Clearing the fancy-urls key solved the issue immediately.

In [1]: v = cache.get('fancy-urls')

In [2]: len(v.keys())
Out[2]: 22717

Above was the final count before deleting the key.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
YPCrumblecommented, Aug 20, 2021

@peterbe I’m coming up against this too due to the default Memcached limit of 1MB. I like the idea of using the separate key for each line, but like you point out, Memcached doesn’t have the search functionality for “searching” cache keys.

One option I can think of is to “shard” the fancy_cache URLs by x time period and only keep n periods of data. So if X is one day, and n is one week, we would have seven keys at any given time and would concatenate these seven into one dict that is the equivalent of the current implementation’s dict.

I’ve been testing #45 with success on my server and would love to incorporate a fix to this issue as well as I update that!

Thanks again for maintaining this library and all your help thinking through the issues 😄.

0reactions
peterbecommented, Oct 21, 2021

@peterbe great idea - would something like the following work?

FANCY_COMPRESS_REMEMBERED_URLS = False  # If True, compress REMEMBERED_URLS using zlib
FANCY_MEMCACHED_USE_CAS = False  # If True, use CAS with Memcached.

Yes please!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vanity URL: What It Is & How To Get One - WordStream
Vanity URLs are a type of custom URL that exists to help users remember and find a specific page of your website. Therefore...
Read more >
Final URL expansion with Performance Max - Google Ads Help
Use Final URL expansion to replace your Final URL with a more relevant landing page based on the user's search query and intent,...
Read more >
django-fancy-cache/README.rst at master · peterbe/django-fancy ...
If you want to you can have django-fancy-cache record every URL it caches. ... option to this and that is to purge (aka....
Read more >
URL bar won't remember or autocomplete previous URLs
Making sure that Options --> Privacy ---> URL bar has history, bookmarks and open tabs selected. 2) The various about:config tweaks.
Read more >
SEO Starter Guide: The Basics | Google Search Central
A knowledge of basic SEO can have a noticeable impact. Explore the Google SEO starter guide for an overview of search engine optimization...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found