Advanced Features

Data Management

Learn how to manage data effectively in your Wayvo applications.


Data Management

Wayvo provides robust tools for managing data within your applications, allowing you to store, retrieve, and manipulate data efficiently. This section covers the key aspects of data management in Wayvo.

Connecting to Data Sources

  1. Access Data Sources

    • Navigate to the "DataSources" section from the main menu.
  2. Add a New Data Source

    • Click on "Add New Data Source" to start the process of connecting to a new data source.
    • Choose from various types of data sources such as SQL databases, NoSQL databases, REST APIs, and more.
  3. Configure Connection Details

    • Enter the required connection details such as host, port, database name, username, and password.
    • Test the connection to ensure it is configured correctly.

Creating Data Models

  1. Define Data Models

    • Navigate to the "Data Models" section to define the structure of your data.
    • Create new data models by specifying the fields and their data types.
  2. Relate Data Models

    • Define relationships between different data models to represent complex data structures.
    • Set up one-to-one, one-to-many, or many-to-many relationships as needed.

Data Binding

  1. Bind Data to Components

    • Use the data binding options in the properties panel to connect UI components to your data models.
    • Bind form fields, tables, charts, and other components to display dynamic data.
  2. Dynamic Data Display

    • Configure components to update automatically when the underlying data changes.
    • Use data binding to ensure your application displays the most current information.

Querying Data

  1. Write Data Queries

    • Use the built-in query editor to write SQL or NoSQL queries to retrieve data from your data sources.
    • Test queries to ensure they return the expected results.
  2. Save and Reuse Queries

    • Save frequently used queries for easy reuse across different parts of your application.
    • Organize queries into categories for better management.

Data Transformation

  1. Transform Data

    • Use data transformation tools to manipulate data before it is displayed in your application.
    • Apply filters, aggregations, and calculations to prepare data for visualization.
  2. Mapping Data

    • Map data fields from external sources to your data models.
    • Ensure data consistency and compatibility by defining field mappings.

Handling Real-time Data

  1. Real-time Data Integration

    • Set up real-time data integration to ensure your application handles live data updates.
    • Use WebSockets or other real-time protocols to stream data into your application.
  2. Update UI in Real-time

    • Configure UI components to update automatically when new data is received.
    • Provide users with real-time insights and feedback.

Data Security

  1. Secure Data Connections

    • Use secure protocols (e.g., HTTPS, SSL/TLS) to encrypt data transmitted between your application and data sources.
    • Ensure that sensitive data is protected during transit.
  2. Access Control

    • Implement role-based access control (RBAC) to restrict access to data based on user roles.
    • Define permissions for different user roles to control data visibility and modification rights.

Monitoring and Logging

  1. Monitor Data Usage

    • Use monitoring tools to track data usage and performance.
    • Identify and resolve any issues related to data access and processing.
  2. Log Data Operations

    • Enable logging to keep a record of data operations such as queries, updates, and deletions.
    • Use logs to audit data activities and troubleshoot issues.

Best Practices for Data Management

  1. Normalize Data

    • Design your data models to eliminate redundancy and ensure data integrity.
    • Normalize data to improve efficiency and maintain consistency.
  2. Optimize Queries

    • Write efficient queries to minimize load times and improve performance.
    • Use indexing and other optimization techniques to speed up data retrieval.
  3. Regular Backups

    • Schedule regular backups of your data to prevent data loss.
    • Store backups securely and verify their integrity periodically.

Tip!

Use Wayvo’s data management tools to ensure your application handles data efficiently, securely, and reliably. Proper data management is key to building robust and scalable applications.


Next Steps

With your data management set up, you can start leveraging the data in your applications. Explore our guides on Scripting and Custom Code and Integration with External Services to enhance your application’s capabilities.

For more advanced data management options, check out our Advanced Features section.

Previous
Scripting and Custom Code