← Back to team overview

maria-discuss team mailing list archive

Re: NoSQL at mysql client

 

Hi, Roberto!

On Aug 16, Roberto Spadim wrote:
> Hi guys, i was reading some time ago about memcache (i use it for a
> long time ~5years or more) and the handler socket plugin
> Why we don't implement it at mariadb client? instead of a second
> library to add nosql, why not implement a built in lib?
> for example...
> 
> (pseudo functions...)
> mysql_connect ... (connect to database and have permission handling...)
> mysql_select_db  ... select the schema being used
> mysql_query ... execute a query command (SQL QUERIES)
> mysql_fetch ... get a row
> mysql_num_rows .. get number of rows
> 
> now the nosql...
> mariadb_handler_socket_openindex( handler socket parameters )
> mariadb_handler_socket_query
> mariadb_handler_socket_fetch
> mariadb_handler_socket_close
> 
> mariadb_memcache_get
> mariadb_memcache_set
> ...
> 
> this make mariadb a sql/nonsql database with a single user/permission
> schema, and a nice language set (SQL, handler socket, memcache, redis,
> drizzle, hadoop, mongodb or others...)

For a single user/permission scema, the connection should go to the
server, it cannot be done in the client.
> 
> but the point is... instead of many connections (3-> mariadb, handler
> socket write, handler socket read, or 2 -> mariadb, memcached) we have
> only one 1-> mariadb

No, if you do it in the client, as you want to, it still will be many
connections. libmysqlclient -> server, libmysqlclient -> memcached, etc.

> comments are wellcome, any idea why not implement this instead of many
> different protocol libs?

I don't see the point.

Regards,
Sergei


Follow ups

References