bergant / datamodelr

Data model diagrams in R
Other
285 stars 28 forks source link

Dealing with big model #21

Open AlbertoAlmuinha opened 4 years ago

AlbertoAlmuinha commented 4 years ago

Hi! I'm trying to visualize a model with 275 tables. I use the following code:

model<- DBI::dbGetQuery(con, sQuery, stringsAsFactors = FALSE, errors=TRUE) model<- as.data_model(model) graph <- dm_create_graph(model, rankdir = "BT", view_type = 'keys_only') dm_render_graph(graph)

The problem is that the tables cannot be seen as there are so many, not even by zooming ... how should I proceed in this case?

Thank you very much! Great package!

SFrav commented 4 years ago

Can you edit model before converting to as.Data_model? After the first line, what’s the result of str(model)?