+
<.input
field={f[:index_frequency_minutes]}
options={friendly_index_frequencies()}
@@ -27,6 +35,18 @@
help="Time between one index of this source finishing and the next one starting. Setting to 'On Create' will still run an initial index but no subsequent ones"
/>
+ <%!-- TODO: use Alpine to disable the index frequency when fast indexing is enabled --%>
+ <.input
+ field={f[:fast_index]}
+ type="toggle"
+ label="Use Fast Indexing?"
+ help="Experimental. Ignores 'Index Frequency'. Recommended for large channels that upload frequently. See below for more info"
+ />
+
+
+ Downloading Options
+
+
<.input
field={f[:download_media]}
type="toggle"
@@ -34,7 +54,9 @@
help="Unchecking still indexes media but it won't be downloaded until you enable this option"
/>
- <:actions>
- <.button class="my-10 sm:mb-7.5 w-full sm:w-auto">Save Source
-
+ <.button class="my-10 sm:mb-7.5 w-full sm:w-auto">Save Source
+
+
+ <.fast_indexing_help />
+
diff --git a/priv/repo/migrations/20240309182418_add_fast_index_to_sources.exs b/priv/repo/migrations/20240309182418_add_fast_index_to_sources.exs
new file mode 100644
index 0000000..26b3a6c
--- /dev/null
+++ b/priv/repo/migrations/20240309182418_add_fast_index_to_sources.exs
@@ -0,0 +1,9 @@
+defmodule Pinchflat.Repo.Migrations.AddFastIndexToSources do
+ use Ecto.Migration
+
+ def change do
+ alter table(:sources) do
+ add :fast_index, :boolean, null: false, default: false
+ end
+ end
+end