镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

More limits (Plan B) - #1629

Merged
Martii merged 1 commit into
OpenUserJS:masterfrom
Martii:moreLimits
Jun 28, 2019
Merged

Martii merged 1 commit into
OpenUserJS:masterfrom
Martii:moreLimits

Conversation

@Martii

@Martii Martii commented Jun 28, 2019

Copy link
Copy Markdown
Member
  • Limit a few more things to possibly curtail some 431's
  • Ease up on MongoDB having issues with script querying and CPU load. Limit to first copied block of characters in about. This amount may get smaller and is currently in flux.
  • Create new clipped searchable fields. I spent a lot of time to see if MongoDB/mongoose had a limiter on their indexer and couldn't find one so we get to do it manually.

NOTE:

  • This will temporarily remove everyone's Summary but it will be manually migrated in the DB in a while. If you are impatient... edit your script (no changes necessary) and resave it... that will do the migration also.

Post #1628 and applies to #1548

* Limit a few more things to possibly curtail some 431's
* Ease up on MongoDB having issues with script querying and CPU load. Limit to first copied block of characters in `about`. This amount may get smaller and is currently in flux.
* Create new clipped searchable fields. I spent a lot of time to see if MongoDB/*mongoose* had a limiter on their indexer and couldn't find one so we get to do it manually.

NOTE:
* This will temporarily remove everyone's Summary but it will be manually migrated in the DB in a while. If you are impatient... edit your script *(no changes necessary)* and resave it... that will do the migration also.

Post OpenUserJS#1628 and applies to OpenUserJS#1548
@Martii Martii added migration Use this to indicate that it may apply to an existing or announced migration. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. stability Important to operations. labels Jun 28, 2019
@Martii
Martii merged commit 1923b57 into OpenUserJS:master Jun 28, 2019
@Martii
Martii deleted the moreLimits branch June 28, 2019 05:25
@Martii Martii added the DB Pertains inclusively to the Database operations. label Jun 28, 2019
Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Jun 29, 2019
* Some new deps
* This removes the HTML and MD from the `about` and stores in the limited `_about`.
* Still currently testing 1KiB term max *(combined)*
* Change default typing on `_description` to empty string.

NOTES:
* This could also be achieved with *marked* and *sanitize-html* however giving this a whirl for source isolation.

Post OpenUserJS#1629 and applies to OpenUserJS#1548
Martii added a commit that referenced this pull request Jun 29, 2019
* Some new deps
* This removes the HTML and MD from the `about` and stores in the limited `_about`.
* Still currently testing 1KiB term max *(combined)*
* Change default typing on `_description` to empty string.

NOTES:
* This could also be achieved with *marked* and *sanitize-html* however giving this a whirl for source isolation.

Post #1629 and applies to #1548

Auto-merge
Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Jun 30, 2019
* Put in env var check for limiting problem query

Post OpenUserJS#1629 and applies to OpenUserJS#1548
@Martii Martii mentioned this pull request Jun 30, 2019
Martii added a commit that referenced this pull request Jun 30, 2019
* Put in env var check for limiting problem query

Post #1629 and applies to #1548

Auto-merge
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. DB Pertains inclusively to the Database operations. migration Use this to indicate that it may apply to an existing or announced migration. stability Important to operations.

Development

Successfully merging this pull request may close these issues.

1 participant