Does Google BigQuery support jsonb as data type? - google-bigquery

We are thinking move from PostgreSql to Google BigQuery. PostGresql support Jsonb as a data type. Can someone tell me does BigQuery also support that type?

You can read about supported data types in the documentation. There is no jsonb type, but you may be interested in the related feature request for a JSON type, which has some workarounds.

Related

Is there support for BLOBs in YugabyteDB like in Oracle or Postgres?

Since YugabyteDB is a Postgres based implementation, will Postgres large objects( https://www.postgresql.org/docs/9.2/largeobjects.html) work in YSQL?
YugabyteDB currently supports BYTEA same as Postgresql. But doesn't have support for Large Objects like Postgresql (splitting the blob internally into chunks). There is a feature request issue on github for large object support.

PostgreSQL equivalent to MongoDB's Mongoose?

I'm using PostgreSQL for a project , and for that I need a SQL database.
Anyone knows what's PostgreSQL equivalent to MongoDB's Mongoose ?
It depends on what you are coding in. Mongoose is an ODM or object data modelling tool for Node.js.
Those object modelling tools are typically tied to a particular language or framework. In Java, one might use Hibernate. In Django, there is a custom ORM (swap data for relational). With Node, one might use a tool like Sequalize.
Sequalize is probably the answer you are looking for.
you can try Sequelize for PostgreSQL
If you are looking for a way to convert JSONB typed columns into objects that you can load update and save like you do using mongoose:
The ยง "JSONB (PostgreSQL only)" type in the sequelize documentation will show you how.
node-postgres might be an alternative

Reason for ACID property support in ORC tables

Hive supports ACID property only for ORC formatted tables.
Can anyone please let me know the reason or any guide available ?
It's the current limitation, Here's the text from official documentation:
Only ORC file format is supported in this first release. The feature has been built such that transactions can be used by any storage format that can determine how updates or deletes apply to base records (basically, that has an explicit or implicit row id), but so far the integration work has only been done for ORC.
More details about Hive transactions can be found here
There is no specific reason per say.
More formats will be supported in later versions. ORC was the first one to be supported.
https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions

Compressing JSON

I am saving long Json string into DB , fetching the string from Db and then serializing it for other manipulation is making it slow.
Is there any good solution to do that.
As there was told, you might need to use Documented-Oriented DB, like MongoDB.
If you can't do this, please consider combined data storage: something you may store in RDBMS, something - in MongoDB.
And if it is impossible for certain reasons, please look at binary formats of JSON: Smile or BSON, both of which are supported by various frameworks, such as JSON.Net (article for consideration http://james.newtonking.com/archive/2009/12/26/json-net-3-5-release-6-binary-json-bson-support.aspx)
The best possible way is to use a document oriented database which support json for storage. This way you can query or update part of the long json without fetching or serializing it.

Selection of datatype for storing images

I want to store and retrieve images to/from database using java beans, which data type should be used for this purpose?
The most conventional approach would be to store the data in a BLOB. That would allow you to read and write the byte stream from Java but wouldn't allow you to do any transformation inside the database.
The other alternative would be to use the interMedia ORDImage type. This provides a great deal more flexibility by allowing the database to do things like generate and return a thumbnail image, to adjust compression quality, etc.
As Grant indicates, LONG RAW (and the character-based LONG) data types have been deprecated so you should not be using them.
I think BLOB is what you are looking for. RAW types are for legacy support so unless you absolutely have to deal with them I wouldn't.