Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for distributed apps #10

Merged
merged 27 commits into from
Sep 23, 2024
Merged

Add support for distributed apps #10

merged 27 commits into from
Sep 23, 2024

Conversation

lalabuy948
Copy link
Owner

@lalabuy948 lalabuy948 commented Sep 12, 2024

  • Added PostgresDB backend support issue 8
  • Added example apps/integrations
  • Added configurable cache
  • Cache will be disabled by default issue 13

Note

In case you would like to enable it back you can optionally add this line to the config

config :phoenix_analytics,
  app_domain: "example.com",
  duckdb_path: "analytics.duckdb",
  cache_ttl: System.get_env("CACHE_TTL") || 120 # seconds # <- this one

Important

Breaking changes

  • System.get_env("DUCK_PATH") renamed to System.get_env("DUCKDB_PATH")
  • config :phoenix_analytics, database_path -> config :phoenix_analytics, duckdb_path
  • cache disabled by default issue 13

Note

The only thing you need to enable Postgres backend to add one line to config:

config :phoenix_analytics,
  app_domain: "example.com",
  duckdb_path: "analytics.duckdb",
  postgres_conn: "dbname=postgres user=phoenix password=analytics host=localhost" # <- this one

Here is full list of Postgres parameters.

@lalabuy948 lalabuy948 changed the title Add support for distributed apps [WIP] Add support for distributed apps Sep 12, 2024
@lalabuy948 lalabuy948 changed the title [WIP] Add support for distributed apps Add support for distributed apps Sep 23, 2024
@lalabuy948 lalabuy948 changed the base branch from master to 0.2.0 September 23, 2024 15:02
@lalabuy948 lalabuy948 merged commit 2448b23 into 0.2.0 Sep 23, 2024
1 check passed
lalabuy948 added a commit that referenced this pull request Sep 23, 2024
* Add support for distributed apps (#10)
@lalabuy948 lalabuy948 deleted the feature/distributed branch October 17, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant