Skip to content

Firebase UI Database very slow to load content #553

Open
@joemerritt

Description

@joemerritt

Hi All,

I'm currently using FIrebaseUI to load data by simply connecting a query to a tableview. When loading the initial the tableview the datasource goes through all nodes in "Adverts".

As i have a lot of nodes this take a prolonged amount of time. IE. "Datasource Started" is call the number of times that I have nodes. Once finished the data works the way i want and it's call as needed ..... Is there a way to shorten this initial load time?

let dataRef = ref.child("Adverts")

self.dataSource = self.listTableView.bind(to: dataRef) { tableView, indexPath, snapshot in

        self.cell = self.listTableView.dequeueReusableCell(withIdentifier: "customMessageCell", for: indexPath) as? CustomMessageCell
        
        print("Datasource Started")
        
       //populate cell here
        
        return self.cell
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions