Skip to content

Commit

Permalink
Add index for duration type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvanleeuwen committed Jan 23, 2024
1 parent 53b276b commit ef98a10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mave_metrics_web/channels/session_channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ defmodule MaveMetricsWeb.SessionChannel do
@impl true
def handle_in(
"event",
%{"name" => "track_set", "language" => ""} = params,
%{assigns: %{session_id: session_id}} = socket
%{"name" => "track_set", "language" => ""},
%{assigns: %{session_id: _session_id}} = socket
) do
{:noreply, socket}
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defmodule MaveMetrics.Repo.Migrations.AddIndexForDurationType do
use Ecto.Migration

def change do
create_if_not_exists index(:durations, [:type])
end
end

0 comments on commit ef98a10

Please sign in to comment.