Navigation

    Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    当产品数量超过一定量的时候,pos模块本地存储的容量无法满足,怎么破?

    Odoo 开发与实施交流
    6
    8
    5642
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pingwe last edited by

      当产品数量超过一定量的时候,pos模块本地存储的容量无法满足,怎么破?
      Uncaught Error: QuotaExceededError: DOM Exception 22
      NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached

      1 Reply Last reply Reply Quote 0
      • O
        old_taoist last edited by

        你有多少item就超出了?

        1 Reply Last reply Reply Quote 0
        • wjfonhand
          wjfonhand last edited by

          LocalStorage has a hard 5.0MB on chrome.

          1 Reply Last reply Reply Quote 0
          • ieitzyb
            ieitzyb last edited by

            5.0MB?

            1 Reply Last reply Reply Quote 0
            • O
              old_taoist last edited by

              [quote author=OpenERP製行业 link=topic=14813.msg27082#msg27082 date=1387237286]
              5.0MB?
              [/quote]
              那就少放图片

              1 Reply Last reply Reply Quote 0
              • mrshelly
                mrshelly last edited by

                Chrome 应该可以配置这个参数吧?

                1 Reply Last reply Reply Quote 0
                • Joshua
                  Joshua 管理员 last edited by

                      /* The db module was intended to be used to store all the data needed to run the Point
                      * of Sale in offline mode. (Products, Categories, Orders, ...) It would also use WebSQL
                      * or IndexedDB to make the searching and sorting products faster. It turned out not to be
                      * a so good idea after all.
                      *
                      * First it is difficult to make the Point of Sale truly independant of the server. A lot
                      * of functionality cannot realistically run offline, like generating invoices.
                      *
                      * IndexedDB turned out to be complicated and slow as hell, and loading all the data at the
                      * start made the point of sale take forever to load over small connections.
                      *
                      * LocalStorage has a hard 5.0MB on chrome. For those kind of sizes, it is just better
                      * to put the data in memory and it's not too big to download each time you launch the PoS.
                      *
                      * So at this point we are dropping the support for offline mode, and this module doesn't really
                      * make sense anymore. But if at some point you want to store millions of products and if at
                      * that point indexedDB has improved to the point it is usable, you can just implement this API.
                      *
                      * You would also need to change the way the models are loaded at the start to not reload all your
                      * product data.
                      /

                      /
                  PosLS is a localstorage based implementation of the point of sale database.
                      * FIXME: The Products definitions and categories are stored on the locastorage even tough they're
                      * always reloaded at launch. This could induce a slowdown because the data needs to be reparsed from
                      * JSON before each operation. If you have a huge amount of products (around 25000) it can also
                      * blow the 5.0MB localstorage limit.
                      */

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post