Kaung Khant Thu Kaung Khant Thu - 6 months ago 96
Android Question

Realm database class table has a limit?

I just found out that realm has a limit of 250 objects
is there any way that i can make to exceed this limit



this is an image from stetho to check my database

Answer

This limit you experience is not the limit of Realm, but the default limit on Stetho. You can adjust this though.

Set the withLimit() on the stetho config:

For example

    Stetho.initialize(
            Stetho.newInitializerBuilder(this)
                    .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                    .enableWebKitInspector(RealmInspectorModulesProvider.builder(this)
                            .withLimit(1000)
                            .build())
                    .build());

It will now show rows 0-999