Skip to content

Dynamic dataframe loading when using View()  #837

@danielbasso

Description

@danielbasso

Is your feature request related to a problem? Please describe.
Using View() on large dataframes causes the system to crash or become slow since it has to load all data into a html template.

Describe the solution you'd like
Use pagination to load only rows that are on screen. Filtering and sorting should be handled "server-side".

Describe alternatives you've considered
I use things like View(my_dataframe[1:100,]), but it compromises filtering and sorting.

Additional context

Example:

dataframe_size <- 5000000 # 5mi rows

my_dataframe <- data.frame(a = rnorm(dataframe_size),
                 b = rnorm(dataframe_size),
                 c = rnorm(dataframe_size),
                 d = rep("test", dataframe_size))

View(my_dataframe)

Screenshot:

image

I'd like to help/implement, if possible. I already took a look at vsc.R and session.ts since the Ag Grid update (#708). Tips/advice are welcomed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions