Git Product home page Git Product logo

objectbox-dart-performance's Introduction

ObjectBox Flutter Database Performance Benchmarks

Setup

As usual run flutter pub get.

Running

Make sure to run the app in release mode to avoid any performance penalties from debug mode. (Note: release mode is not supported on the iOS simulator, a real device is required.)

To run in release mode with Android Studio connect a device or start an emulator, then Run > Flutter Run 'main.dart' in Release Mode.

Or run flutter run --release.

To further improve performance, make sure to disconnect dev tools. E.g. stop the app on the device and launch it again.

Implementation notes

Hive

  • No test with index as Hive does not support explicit indexes.

Isar

  • Instead of read all does use query with no conditions and returns all results.
  • Query tests not available (queryWithLinks not implemented).

objectbox-dart-performance's People

Contributors

blaugold avatar greenrobot-team avatar obx-vivien avatar peterlazar1993 avatar vaind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

objectbox-dart-performance's Issues

Finalize isar comparison

Isar went stable new years, so would be really cool to get a full isar benchmark comparison here also.

`flutter build bundle` fails on Linux

OS: Ubuntu 20
Flutter Embedder: ivi-homescreen

Flutter Version

$ flutter --version
Flutter 2.10.5 • channel stable • https://github.com/flutter/flutter
Framework • revision 5464c5bac7 (3 weeks ago) • 2022-04-18 09:55:37 -0700
Engine • revision 57d3bac3dd
Tools • Dart 2.16.2 • DevTools 2.9.2

Flutter Config

Settings:
  enable-linux-desktop: false
  enable-custom-devices: true (Unavailable)

flutter pub run build_runner build passes without error

flutter build bundle fails with:

💪 Building with sound null safety 💪

lib/isar.g.dart:160:35: Error: Too few positional arguments: 5 required, 0 given.
    final object = TestEntityPlain();
                                  ^
lib/model.dart:51:3: Context: Found this candidate, but the arguments don't match.
  TestEntityPlain(this.id, this.tString, this.tInt, this.tLong, this.tDouble);
  ^^^^^^^^^^^^^^^
lib/isar.g.dart:236:37: Error: Too few positional arguments: 5 required, 0 given.
    final object = TestEntityIndexed();
                                    ^
lib/model.dart:96:3: Context: Found this candidate, but the arguments don't match.
  TestEntityIndexed(this.id, this.tString, this.tInt, this.tLong, this.tDouble);
  ^^^^^^^^^^^^^^^^^
lib/isar.g.dart:301:35: Error: Too few positional arguments: 2 required, 0 given.
    final object = RelTargetEntity();
                                  ^
lib/model.dart:241:3: Context: Found this candidate, but the arguments don't match.
  RelTargetEntity(this.id, this.name);
  ^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
Failed to build bundle.

What is the required patch for isar.g.dart?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.