You can configure application settings to optimize performance by setting defaults, adjusting schema, and enabling features like materialization and audience. Explore how to manage sampling, rules, and feature flags to tailor your application's functionality.
Configure application settings
- Go to Settings > General Settings.
- Set Defaults for various behavioral analytics templates. For example, use the Users dataset as the default actor dataset in a funnel, and Event Stream for events inside the funnel and retention charts.
- Configure the Time Zone for your application.
- Adjust application-level settings related to the data warehouse and query schema in the Schema section.
- Configure shorter join paths and let Analytics infer the intended join path based on the number of edges.
- Enable the Schema setting carefully, as it might generate unexpected SQL queries.
- Set chart preferences like faster response and higher precision in the Sampling section.
- Enable Materialization to create materialized tables in the data warehouse for improved performance.
- Specify the Database and Schema for these tables. For BigQuery, the Database and Schema fields correspond to the BigQuery project name and dataset name.
- Set the Refresh Cron Schedule for the tables using cron syntax.
- Configure Rules for your application.
- Define criteria to trigger alerts.
- Enable and set the Refresh Cron Schedule.
- Rules execute periodically based on the provided cron expression. To enable the optional rules feature in Analytics, contact support@netspring.io.
- Configure the Audience, which is a cohort published to the warehouse.
- Enable and specify the Database and Schema fields.
- Toggle Enabled Periodic Refresh for regular updates.
- Enable or disable the corresponding toggles in the Feature Flags section:
- Update exploration templates
- Enable drafts
- Universal exploration template
- Cast all timestamps
- Click Save.
Cron jobs
Cron jobs are processes scheduled at recurring intervals and are specified using a format based on Spring Cron Expression. Using cron jobs, you can schedule your job so that it runs at specified times or on specific dates.
Cron jobs are defined using the Spring Cron Expression format (* * * * * * ). This is a set of six fields in a line, each field indicating when to execute the job. The following list is what each of the fields in the string denotes:
- Field 1 – Second. Accepts values 0-59.
- Field 2 – Minute. Accepts values 0-59.
- Field 3 – Hour. Accepts values 0-23.
- Field 4 – Day of the month. Accepts values 1-31.
- Field 5 – Month. Accepts values 1-12 or JAN-DEC.
- Field 6 – Day of the week. Accepts values 0-7 or MON-SUN (0 and 7 are Monday)
Please sign in to leave a comment.