Giter Club home page Giter Club logo

luvit-mongodb's Introduction

Hi there 👋

Hi, it's Cyril here, I'm a music-driven web developer and currently focusing on Golang and React.

Welcome get in touch with me at [email protected].

Home Page:

http://cyrilis.com/

luvit-mongodb's People

Contributors

cyrilis avatar gitter-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

luvit-mongodb's Issues

插入问题

一个循环一次插入50个文档,然后提示错误了。测试代码是
for i = 1,50 do
local insert = {
uid = math.floor(math.random(1000)),
bean = math.floor(math.random(1000))
}

mongo:insert("Leaderboard", insert, nil, function(err, res)
  print('insert Leaderboard complete')
end)

堆栈报错是
Uncaught Error: [string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:18: Unable to read enough characters
stack traceback:
[C]: in function 'assert'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:18: in function <[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:13>
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:68: in function 'parseMsgHeader'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:233: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'

count's performance problem

i reference the mongodb's c driver,query the collection's count,can use the 'count' command,but in your driver use the query and get the length of the documents for this,maybe this is a performance problem

发布一下

朋友 空的时候把最新代码发布一下吧 😁

排序的问题

hi,我现在使用的是 $orderby来做的排序,但mongodb的文档上写的是
Deprecated since version 3.2: The $orderby operator is deprecated. Use cursor.sort() instead.
我们使用的 mongodb是2.6,所以目前还能获取到排好序的数据,但是我看你们的 cursor 没有提供sort的操作。是不是有其他地方可以使用?

迭代查询的问题

你好
目前直接使用find的时候 limit传Nil的时候只会返回101个,有没有像其他驱动那种,返回一个游标,查询一个然后next 一下。直到把数据全部读取完的那种模式呢?

插入文档的问题

当插入一个文档里面包含 0,的时候,会插入一个非数字的值进去,比如 insert {a = 0}

负数读取的问题

你好,目前遇到能正常插入一个负数,但是读取的时候,读出来的是一个无符号整数的问题

多个连接对象的问题

请问这个驱动,支持同时创建N个连接对象吗?然后我上层动态的选取连接对象来做数据库操作

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.