FSRS unable to optimize error..... trying to fix it

I’ve been trying to optimize the Anking step 1 and 2 deck a few months now, but i keep getting the error 500 message. I want to use different parameters for school specific decks and then the Anking deck. I looked through the forum and found out that i am running this optimization an empty parent deck but couldn’t find out how to fix it. The ideal situation is having Anking specific FSRS and then school specific FSRS. Any help is appreciated!

Your options preset is only used by 1 deck – and it sounds like that’s your empty parent deck. What preset is used by the decks that the cards are actually in?


I don’t know the answer to that question. I just downloaded the deck from Anking then wanted to switch on FSRS for that deck specifically so i watched a YT video, set the parameters, and named it after the deck. in my mind this way there would be different parameters for school and anking???

You can only generate new parameters (Optimize) if you have enough reviews. Otherwise you need to copy existing parameters or keep the default ones. Or you can specify a search query to optimize on the reviews of the other deck or all of them (the resulting parameters will be used only for the decks with this preset).

You can’t do that. FSRS is profile-wide, either on or off.

You’ve got 1 deck using the Anking deck options, 1 deck using the M2 deck options, and almost 2000 decks using the other set of options.

If you want to apply the Anking deck options to every deck under that parent deck as well – take a look at “Save to All Subdecks.” And then you might want to consider selecting your “school” deck and doing the same. When the preset applies to those subdecks, it will optimize based on the review history of all of the cards in those decks, and it will apply those parameters to scheduling all of the cards in those decks.

[FYI: There will always be a “Default” preset, and it will always have at least 1 deck assigned to it – the probably hidden from view “Default” deck. So you’ll know you’ve taken care of all of your decks if you get Default down to 1.]

oh sorry for the misunderstanding, I have FSRS turned on all the time for all my decks they just have different settings for school vs anking. I just want to optimize and evaluate the anking deck exclusively. With my school deck i will leach cards on purpose and skips irrelevant stuff but i do not want that to be considered into my Anking deck FSRS stats. I am thinking that my Preset: “Anking step 1… etc” is messing things up, making it so i cannot evaluate or optimize. I dont understand any of this so I appreciate you patience.

i put up mean numbers in on my reviews, so its not lack of reviews. I don’t understand why the preset deck is not working.

i put up mean numbers in on my reviews, so its not lack of reviews.

I don’t understand that.

I don’t understand why the preset deck is not working.

Try removing the double quotes from the actual preset name. That must be why your search is not working.

No dice…

Does the search work in the Browser?

Your “Anking” preset is not the problem (at least not the primary one). The problem is that most of your decks (1985 of them) are not using that preset.

This means that if you open that plus next to AnKing Overhaul on the decks page, NONE of those subdecks that appear are using your Anking preset, and your Anking preset doesn’t have access to any of those cards or their review history.

Yes, you can keep the Anking and school decks on separate presets, but right now, you’re not using either of them yet.

Do you want the AnKing Overhaul parent deck AND all of its subdecks and they cards they contain to be using the Anking Overhaul preset? If so, see above where I talked about “Save to All Subdecks.” Once that preset says something more productive than “(used by 1 deck),” we can look at what else might need to be fixed.

There is only a singular subdeck in the Anking parent deck and its “instructions”. it has a singular card but i just deleted that subdeck. I saved the preset using the “save to all subdecks” here is what i am working with.

I took it from you that AnKing Overhaul is an empty parent deck, but if that’s the only subdeck under it – then is it empty? Or is that where the cards actually are? How long have you been studying from this deck or how many cards do you have in Review?

You still haven’t said what M2 Mine is supposed to apply to – but it looks like you made some progress on that one at least. What are your other 1700 decks?

Anking is a deck of 30000 cards that prepares you for medical school nation tests. I do like 800 reviews from that a day. M2 is the class stuff. M2 stuff is now working i was able to evaluate and optimize but Anking not working.

Did you really remove the quotes from the preset name that appears in quotes in the dropdown on all your screenshots?

Also remove the search query preset:"AnKing Overhaul for Step 1 & 2". Then suspended cards will not be used, but it’s a possible cause of error.

i tried removing the quotes already but should i remove the whole preset: Anking overhaul…

When there is no search query, a default one is used, which shows in grey.

Since you haven’t removed the quotes yet, I’m especially interested in knowing what the default optimization query is for this preset, so please take a screenshot after you delete what is in that field.

If it is being built correctly, behind where you have entered –
preset:"AnKing Overhaul for Step 1 & 2"
– it should probably look more like –
preset:"\"AnKing Overhaul for Step 1 & 2\"" -is:suspended
– with the quotes in the actual name escaped. [If it doesn’t, that’s a bug, so we’d like to report it and get it fixed.]

But I think @Aleksej is right on the money – since you’ve put preset:"AnKing Overhaul for Step 1 & 2" in there manually, FSRS is probably searching for something that doesn’t exist – cards belonging to the preset named AnKing Overhaul for Step 1 & 2 without the quotes – and finding 0 cards.

It might start working after you remove your manual query, but you should still remove the quotes from the name anyway, because they are unnecessary, and likely to cause issues.

I don’t know how you tried before, but you need to use “Rename Preset” – and then go ahead and Save to exit the options window, and come back in. The quotes should be gone in the drop-down at the top of the window, and there should be only one set of quotes on the default optimization query.

1 Like


It worked!!! thanks guys @Aleksej @Danika_Dakika

1 Like

Glad to hear it!
Was this screenshot taken before or after you renamed the preset?