D
D
dimkatrofimka2018-02-13 15:03:27
three.js
dimkatrofimka, 2018-02-13 15:03:27

How in three.js Object3D to save to the database?

There is a scene with objects (object3D) on it - how best to save these objects in the database - their location, size and other properties. (JSON? how to convert?)
Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2018-02-13
@Taraflex

If sampling by individual properties is not planned, then serialize to protobuf/MessagePack/bson and store as binary data in the same form and send to the client.
If you need to make selections, then it's better to just shove the data into columns.
If you want exactly json (but why?), then it's better to take PostgreSQL where you can index json fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question